Question: Program: Assume there are up to 50 different objects sold in a store. Partially fill an array with prices of these objects by prompting the
Program: Assume there are up to 50 different objects sold in a store. Partially fill an array with prices of these objects by prompting the user in a loop and follow the instructions listed in the main() function. Named Constant: Declare a named constant-50for the site of the arry main() Function 1. Declarations: o Declare an array of type of size 50 (use the named constant) to store up to 50 prices. Declare other variables as needed. o 2. Write a loop to read up to 50 prices into this array. In each cycle of the loop: Prompt the user to enter a price. Use the sentinel value -1 to stop the data entry. o
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
