a. Write a pseudo-code that prompt the user to input number of sold items and then receive the sold value for each item, calculate the average value, display the items numbers associated with its values and display also the calculated average value on the screen.
b. write down the C++ code for the previous program.
Well... I tried to solve it and here we go:
get sold items,sold value
average=sold value/sold items
Display sold items,sold value
cout<<"enter the number of sold items\n";
cout<<"enter the sold value for each item\n";
I'm 100% sure that the program above is incorrect and need some modifications..
plzzzzz...put me on the right direction. Thnx