Question
CSC100AA and CIS162AA Program 1 - AmpsCalculation Please adhere to the C++ Standards and Guidelines document on the class site . Submit the following: List
CSC100AA and CIS162AA
Program 1 - AmpsCalculation
Please adhere to the C++ Standards and Guidelines document on the class site. Submit the following:
List of source code with comments to document
Test output listed as comments at the end of your program
AmpsCalculation.cpp (5 pts)
Write a program that prompts the user for two double variables, the voltage (V) and resistance (R). Calculate and display the current in amps (I).
Calculate and display the power dissipation in watts (P).
Recall Ohms Law is I = V/R, where I is current in amps, V is voltage, and R is resistance. Also use P = I2R for the power calculation.
Use all double numbers and variables. Format all results to display 2 decimal places. Include output from this test data. Its from a toaster: Voltage is 120 and Resistance is 9.29. Example Output:
Enter the voltage: 120
Enter the resistance: 9.29
Given a voltage (V) of: 120 and resistance (R) of: 9.29
The amps (I) are: 12.92
The power (P) is: 1550.05
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started