Computer Science, asked by aaaamad90, 1 year ago

A computer store wants to keep track of the computers in its store. You are asked to write a program that asks the user to enter the brand (string, eg. Acer), model (string, eg. Aspire), RAM size (int) and the price (double) for each computer. The user can enter as many computer information as needed (use a loop of your choice).

The program should do the following :

1. Identify the total and average price of all computers.

2. Display the brand and model of the most expensive computer.


Requires :
variables, data types
basic input/output
logic (if else if statements)
loops (for, while, or do-while. Hint : data has to be processed within the loop)

Answers

Answered by adikhan
0
first of all you should make a class and build it's object in loop or if else goto statement that ask for to enter another record. also you can find sum by apply loop and avg to by just putting mathematical expression like sum of comouter price/no of computer
Similar questions