Generation

generate functionTue, 15 Nov 2022

2. The part that asks the user whether to calculate the series resistance or the parallel resistance, and calculates the solution of either the series or the parallel combined resistance depending on the answer. Therefore, use if statement to determine the input. (It is common to answer the question with Y or N. but it is not specified, so think for yourself.)

if (choice == 'Y')

Questions about programming?Chat with your personal AI assistant