Select a favorite topic. Write a program that asks for names and some attribute of the item (see below). Use a WHILE loop to continue to get input. When the user is finished entering information,...

1 answer below »

Select a favorite topic. Write a program that asks for names and some attribute of the item (see below). Use a WHILE loop to continue to get input. When the user is finished entering information, display some arithmetic information about what they entered.




Don't just replicate this same idea, think of something creative to do with your program.



Enter a fruit: apple
What color is it (R)ed, (Y)ellow, (O)ther? R
Do you want to add more (Y/N)? Y
Enter a fruit: banana
What color is it (R)ed, (Y)ellow, (O)ther? Y
Do you want to add more (Y/N)? Y
Enter a fruit: cherry
What color is it (R)ed, (Y)ellow, (O)ther? R
Do you want to add more (Y/N)? Y
Enter a fruit: grape
What color is it (R)ed, (Y)ellow, (O)ther? O
Do you want to add more (Y/N)? N
You entered 4 altogether.
There were 2 red fruits.
There were 1 yellow fruits.
There were 1 fruits that were neither red nor yellow.

What to submit:



  • Your Python program (a.pyfile)


  • Fourscreen shots of your program working with four different sets of inputs, showing various results.


Answered 173 days AfterOct 01, 2021

Answer To: Select a favorite topic. Write a program that asks for names and some attribute of the item (see...

Sathishkumar answered on Jan 05 2022
124 Votes
SOLUTION.PDF

Answer To This Question Is Available To Download

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here