Question: hello i need help with QUESTION 2 :) I need help writing this program in C++ & I haven't learnt how to use functions or
hello i need help with QUESTION 2 :)
I need help writing this program in C++ & I haven't learnt how to use functions or arrays yet.
QUESTION 2 Write a program that asks the users to calculate the total resistance, Rr of a parallel (P) or series(S) circuit. The user needs to key in the type of the circuit as well as the value of three different resistors. The formula for the total resistance value are given by: Series Circuit, RT Ri+R2+R3 Parallel Circuit, RT = (1/ Ri + 1/R2 + 1/R)-1 If the user enters a wrong selection of circuit, display a message indicating that the user needs to re-enter the type of circuit again. The program will keep asking until the users enter the correct selection and it will then automatically calculate the total resistance. [10 marks] QUESTION 3 Write a program by using a do-while loop control structure that converts temperature that is entered in Celsius by user to Fahrenheit with the following conditions: Start temperature0C End temperature 40 C In your program, include a while loop control structure to perform input validation that do not accept start temperatures less than a lower limit or higher than an upper limit. The code should display the Celsius temperature and the equivalent temperature in Fahrenheit
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
