Question: Question: Data Types, Variables, Operators, IF and FOR statement You work for a retailer. Write a C program that asks the user to enter the

Question: Data Types, Variables, Operators, IF and FOR statement You work for a retailer. Write a C program that asks the user to enter the following information for 10 items: item description, item quantity and item price. Note: the item description must not exceed 29 characters. The program should find the item with the highest price. Print out the item with the highest price description, quantity and price. Then print out the 10 items description, quantity, and price. Use a for-loop to get the item description, item quantity and item price for 10 items. Use a for-loop and an ifelse statement to find the highest price item. Use a for-loop to print out the 10 items description, quantity, and price. Use a constant to define the maximum size of 10.

Rubric [10%] 1. Algorithm detailed design [2%] 2. Correct structure of program, libraries and constant declarations [1%] 3. Correct declaration of variable to store item descriptions, declaration of variable to store item quantity and declaration of variable to store item prices. [2%] 4. Correct use of for-loop and printf and scanf statements to get the values from user and store the values[2%]. 5. Correct use of for-loop and if-else statement to get the highest price [2%] 6. Correct use of for-loop and printf statements to print out the item description, quantity, and price. [1%]

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!