Question: Using C++ language. Solve the Question. 1. The power consumed by a heater can be calculated by the equation p=vi where p=power (watts) v=voltage (volts)

Using C++ language. Solve the Question.

Using C++ language. Solve the Question. 1. The power consumed by a

1. The power consumed by a heater can be calculated by the equation p=vi where p=power (watts) v=voltage (volts) i=current (amperes) Write a program to calculate the power consumed by various types of heaters. The input specifications are these: Read the voltage, v (first column), and the current, i (second column). from this file. 110 220 90 370 5.5 23.5 13.6 44.4 The output specifications are these: The output shall display the following data on the screen: The input values of v and i The power For example, after reading the first line of input data, you should display the following on the screen: Input voltage=110.0 volts, current = 5.5 amperes Power consumed by the heater = 605.0 watts Note: Student is advised to use function topic to develop the program. 2. Rewrite a program question 1 that reads the input of voltage and current heater. Use at least three functions: one for input, one for calculating and one for the output. Display the power value

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!