Computers and Technology
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,

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 21.06.2019 23:30, sheram2010
Acomputer is a multipurpose device that accepts input, processes data, stores data, and produces output, all according to a series of stored . the processing unit of most modern computers is a(n) . the instructions that tell a computer how to carry out a task are referred to as computer , which are distributed as software. computers run three main types of software: software, system software, and development tools. an example of system software is a computer system, which is essentially the master controller for all the activities that a digital device performs. digital devices are constructed using tiny electronic components that represent data bits as electrical signals. the system unit houses the system board, which contains several circuits made from semiconducting materials. computers come in three popular form factors: component, , and slate. many of today's digital devices operate on battery power supplied by ion batteries. battery life and lifespan can be extended by following good battery management practices.
Answers: 3
image
Computers and Technology, 23.06.2019 11:00, jaygamer37
What is the name of the sound effect that danny hears
Answers: 1
image
Computers and Technology, 23.06.2019 21:30, mariah10455
Write a fragment of code that reads in strings from standard input, until end-of-file and prints to standard output the largest value. you may assume there is at least one value. (cascading/streaming logic, basic string processing)
Answers: 3
image
Computers and Technology, 24.06.2019 00:30, sethhdoty
Use the keyword strategy to remember the meaning of the following word. the meaning for the word has been provided. write your keyword and describe the picture you would create in your mind. obfuscate: to make something so confusing that it is difficult to understand.
Answers: 2
Do you know the correct answer?
Diesel engine specifications include its weight ( w ), maximum horsepower ( hp ), and maximum torque...

Questions in other subjects:

Konu
Mathematics, 16.10.2020 14:01