1)the voltage of a resistor is calculated by ohm's law: V=RI. write a progra
ID: 3629984 • Letter: 1
Question
1)the voltage of a resistor is calculated by ohm's law: V=RI. write a program that will input resistance R, current I for several resistors, and will calculate and display the voltage for each resistor. the loop will terminate if your enter -1 as the resistance value.(Note that your program should output nothing when -1 is entered as the resistance valu)2) design a program that will help an elementary school student learn multiplication. Use rand() to generate two integer number between 1 to 9. you program will first ask a question such as: 6x 7=? the student then should type the anser on the same line. then your program checks the students answer. if it is correct print verygood and then let the student try the same question again repeatedly. the loop will end if the student enters "-1" as the answer