Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C PROGRAMMING One soft drink company wants to find out the quality of new soft drinks developed by the product development unit. Soft drinks are

C PROGRAMMING

One soft drink company wants to find out the quality of new soft drinks developed by the product development unit. Soft drinks are tasted by ten subjects and they give the drinks a score of 1 to 5, of which 1 means disgusting and 5 excellent. The company analyzes the results of the tastings and decides which soft drinks will be discarded and which will be placed on the market. The selection criteria are: a drink that is rated 3 or higher by more than half of the tasters will advance and the others will be rejected. Make a program that reads the results of the tastings of the four soft drinks and then announces which drinks are accepted and which are rejected. Example run: Enter the drink number 1. score Please rate (1-5)> 1 Please rate (1-5)> 2 Please rate (1-5)> 1 Please rate (1-5)> 3 Please rate (1-5)> 5 Please rate (1-5)> 3 Please rate (1-5)> 5 Please rate (1-5)> 3 Please rate (1-5)> 2 Please rate (1-5)> 3 Enter the drink number 2. score Please rate (1-5)> 1 Please rate (1-5)> 2 Please rate (1-5)> 3 Please rate (1-5)> 5 Please rate (1-5)> 2 Please rate (1-5)> 3 Please rate (1-5)> 5 Please rate (1-5)> 3 Please rate (1-5)> 1 Please rate (1-5)> 2 Enter the drink number 3. score Please rate (1-5)> 6 THE RATING WILL COME CHOOSE 1 - 5! Please rate (1-5)> 1 Please rate (1-5)> 0 RATING MUST BE SELECTED 1 - 5! Please rate (1-5)> 2 Please rate (1-5)> 4 Please rate (1-5)> 3 Please rate (1-5)> 5 Please rate (1-5)> 2 Please rate (1-5)> 3 Please rate (1-5)> 4 Please rate (1-5)> 3 Please rate (1-5)> 5 Enter the drink number 4. score Please rate (1-5)> 1 Please rate (1-5)> 1 Please rate (1-5)> 2 Please rate (1-5)> 1 Please rate (1-5)> 1 Please rate (1-5)> 3 Please rate (1-5)> 2 Please rate (1-5)> 1 Please rate (1-5)> 1 Please rate (1-5)> 2 Drink number 1 is valid Drink number 2 is valid Drink number 3 is valid Drink number 4 is invalid

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

More Books

Students also viewed these Databases questions

Question

4. Identify cultural variations in communication style.

Answered: 1 week ago

Question

9. Understand the phenomenon of code switching and interlanguage.

Answered: 1 week ago

Question

8. Explain the difference between translation and interpretation.

Answered: 1 week ago