Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Using C++ language, please help me answer Question 2, need 3 function only.1 for input.1 for calculating.1 for display. Thank You.. 1. The power consumed

Using C++ language, please help me answer Question 2, need 3 function only.1 for input.1 for calculating.1 for display. Thank You..

image text in transcribed

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

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

Successful Keyword Searching Initiating Research On Popular Topics Using Electronic Databases

Authors: Randall MacDonald, Susan MacDonald

1st Edition

0313306761, 978-0313306761

More Books

Students also viewed these Databases questions

Question

identify current issues relating to equal pay in organisations

Answered: 1 week ago