Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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. 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. 

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Modern Dental Assisting

Authors: Doni Bird, Debbie Robinson

13th Edition

978-0323624855, 0323624855

Students also viewed these Programming questions