Page 1 of 1

A car salesman keeps the information of each model of car he sells. The example of information for 3 cars' models is as

Posted: Sun Jul 03, 2022 12:00 pm
by answerhappygod
A Car Salesman Keeps The Information Of Each Model Of Car He Sells The Example Of Information For 3 Cars Models Is As 1
A Car Salesman Keeps The Information Of Each Model Of Car He Sells The Example Of Information For 3 Cars Models Is As 1 (128.17 KiB) Viewed 19 times
A car salesman keeps the information of each model of car he sells. The example of information for 3 cars' models is as in Table 2. Write C++ statement for the following task. Model Engine capacity Waja Wira MyVi 1.6 1.5 1.3 Price 60000 50000 45000 i. Define a structure for storing the above information named Car. ii. Declare a variable called myCar and initialized it with some values of your choice. Display information on myCar. iii. Declare another variable called mySecondCar and assign values to it using assignment statements. Display information on mySecondCar. iv. Print the total of price paid for myCar and my SecondCar. v. Copy the values and information of mySecondCar into myCar and display current information on myCar.