Question: Write a C-code for a program that reads the weight of 30 apples. The program should read two numbers for every apple: The first number:

 Write a C-code for a program that reads the weight of

Write a C-code for a program that reads the weight of 30 apples. The program should read two numbers for every apple: The first number: the color of the apple (if the apple is green enter 1, and if red enter 2). The second number: the weight of the apple Your program should then calculate and print the following: 1. Average weight of all apples. 2. Number of green apples in the company 3. Find and print the color of the apple which has the lowest weight

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!