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 08:40
1. the program must provide following functions to extract some statistics. note that the data_list parameter specified in these functions may be the same for all functions or different for different functions—that is your choice. a skeleton file is provided on mirmir. a) open_file()prompts the user to enter a year number for the data file. the program will check whether the year is between 1990 and 2015 (both inclusive). if year number is valid, the program will try to open data file with file name ‘year.txt’, where is the year. appropriate error message should be shown if the data file cannot be opened or if the year number is invalid. this function will loop until it receives proper input and successfully opens the file. it returns a file pointer and year. i. hint: use string concatenation to construct the file name b) read_file(fp)has one parameter, a file pointer read. this function returns a list of your choosing containing data you need for other parts of this project. c) find_average(data_list) takes a list of data (of some organization of your choosing) and returns the average salary. the function does not print anything. hints: i. this is not the average of the last column of data. it is not mathematically valid to find an average by finding the average of averages—for example, in this case there are many more in the lowest category than in the highest category. ii. how many wage earners are considered in finding the average (denominator)
Answers: 1
question
Computers and Technology, 23.06.2019 03:30
Ihave a singular monitor that is a tv for my computer. recently, i took apart my computer and put it back together. when i put in the hdmi cord and booted the computer to see if it worked, the computer turned on fine but the screen was blue with "hdmi no signal." i've tried everything that doesn't require buying spare parts, any answer is appreciated!
Answers: 1
question
Computers and Technology, 23.06.2019 18:40
How does is make you feel when you're kind to others? what are some opportunities in your life to be more kind to your friends and loved ones? imagine a world where kindness has be outlawed. how would people act differently? would your day-to-day life change significantly? why or why not?
Answers: 2
question
Computers and Technology, 24.06.2019 11:20
Every telecommunication setup uses two devices: one device to transmit data and one device to receive data. which device transmits frequencies to mobile phones? towers transmit frequencies to mobile phones.
Answers: 1
You know the right answer?
Diesel engine specifications include its weight ( w ), maximum horsepower ( hp ), and maximum torque...
Questions
question
Mathematics, 24.10.2019 05:00
question
Mathematics, 24.10.2019 05:00