subject
Computers and Technology, 07.04.2020 20:12 any80

Diesel engine specifications include its weight ( w ), maximum horsepower ( hp ), and maximum torque ( t ). The performance of such engines can be compared using a performance index. In one study the performance index ( pi ) is defined as the ratio of maximum horsepower per unit of weight (i. e. pi = hp / w ) of engine. Write a program to calculate the performance index of several engines based on the following guidelines.

Define a class (called engine ) containing the specifications of a typical engine (i. e. w , hp , and t ) and member function(s) to read these specifications.

Write a program to make use of an object of class engine type to calculate the performance index of six different engines listed below and print the index and the specifications of each engine to an output file having a format exactly like that shown below
Maxium(hp): 68, 72, 168, 725, 220, 130

Maximm torque(Ib-ft): 225, 281, 664, 2840, 560, 393

Weight(Ib): 4750, 5012, 7240, 9680, 7540, 6180

Performance Index(hp/Ib): 0.01431,

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 10:20
Print "usernum1 is negative." if usernum1 is less than 0. end with newline. convert usernum2 to 0 if usernum2 is greater than 10. otherwise, print "usernum2 is less than or equal to 10.". end with newline
Answers: 3
question
Computers and Technology, 22.06.2019 11:00
Eva has many contacts on the professional networking site she uses which contacts are considered second degree
Answers: 3
question
Computers and Technology, 23.06.2019 14:30
Select the correct answer. a company wants to use online methods to target more customers. it decides to conduct a market research by collecting the data of a few customers with their consent. they want to track data of the sites that their customers frequently visit. which software can the company? a. spyware b. bots c. adware d. trojan horse e. rootkits
Answers: 1
question
Computers and Technology, 23.06.2019 19:30
Amitha writes up a one-page summary of a novel during her summer internship at a publishing company. when she reads over the page, she realizes she used the word โ€œforeshadowโ€ seven times, and she would like to reduce the repetition. which tool would best amitha solve this problem?
Answers: 3
You know the right answer?
Diesel engine specifications include its weight ( w ), maximum horsepower ( hp ), and maximum torque...
Questions
question
Mathematics, 17.07.2019 12:30
Questions on the website: 13722363