Question: CS 126: Computer Programming Spring 2019/2020 Pre-Lab 03: Expressions and Datatypes 1. Write a program that reads 3 integer dimensions of a room (length, width,

 CS 126: Computer Programming Spring 2019/2020 Pre-Lab 03: Expressions and Datatypes

CS 126: Computer Programming Spring 2019/2020 Pre-Lab 03: Expressions and Datatypes 1. Write a program that reads 3 integer dimensions of a room (length, width, height) and computes its volume. Note that volume of a cube formula is length x width x height. 2. Write a program that reads an integer and computes its square and its cube. Sample Output Enter a number: 5 The square of number 5 is: 25 The cube of number 5 is: 125 3. Try to find out what the following program do float(input("Input R: '); a - 3.14p**2; h - float(input('Input H: ')); result -a. h; print ("The result is', result); 4. Write a program that reads an integer (between 100 and 999) and finds and displays the result of multiplying all of its digits. Page 1 of 1

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!