Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Write a C++ program that contains a class aptop Type that contains information about laptop. The dess has public and private members as follow: The

image text in transcribed
image text in transcribed
Write a C++ program that contains a class aptop Type that contains information about laptop. The dess has public and private members as follow: The public members are: String variable for name of the laptop Integer variable for number of Very Bad ratings Integer variable for number of Bad ratings Integer variable for number of OK ratings Integer variable for number of Good ratings Integer variable for number of Excellent ratings The private member is: Integer variable for the total number of points received for this laptop. In your program, declare an array of five class objects. Each component of the array holds the information for one laptop. Calculate the total points for each laptop as follow: Total Number of points1 number of people that have rated this laptop as Very Bad + 2 * number of people that have rated this laptop as Bad + 3 * number of people that have rated this laptop as OK +4* number of people that have rated this laptop as Good + 5 number of people that have rated this laptop as Excellent Your program will also do the following: Output the list of the laptops and the ratings Calculate and output total number of points for each laptop. Find and output the best laptop and the total points it received Find and output the worst laptop and the total points it received Sample Run: -------- Name: UIN : CRN : Date: Laptop Consumers Reviews: Good Excellent Total Points Very Bad SEEEEE Laptop Name HIT Super Computer Delta' Inspiring Microstar Sparkle Book Delta Extra 13 totive Book Slim he best laptop is Microstar Sparkle Book. It received 240 points. he worst laptop is Delta Inspiring. It received 121 points, MET 120 - Computer Aided Drafting - HW 01 3. Using the ruler provided, determine the scale that should be indicated on the drawing for the following objects. (10 points) - 5.00 - 3 . 00 - Scale = 2.00 E 5 . 00 3 . 00 Scale = 2 10 - 5.00 - - 3.00 - Scale = 3.00 2.00 0 1 2 3 4 5 6

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

What event defined the founding of modern scientific psychology?

Answered: 1 week ago