Compute on Matlab (no loops) Please
Posted: Thu Jul 14, 2022 2:27 pm
Compute on Matlab (no loops) Please
2. Compute the volume of a tank as a function of its height. Create a program that asks the user for the height. If the user inputs a number above 33 the program should display an error statement that says "Error - Too high", and if the user inputs a negative number the program should display "No negative numbers". The program should then compute the volume of the take base on the input height of the tank and output a statement that says "The volume in the tank is #\#\#\# cubic meters." Assume the tanks are round.
2. Compute the volume of a tank as a function of its height. Create a program that asks the user for the height. If the user inputs a number above 33 the program should display an error statement that says "Error - Too high", and if the user inputs a negative number the program should display "No negative numbers". The program should then compute the volume of the take base on the input height of the tank and output a statement that says "The volume in the tank is #\#\#\# cubic meters." Assume the tanks are round.