Represent the logic of a program that allows the user to enter a value for the length of one edge of - 1 Represent the logic of a program that allows

# Represent the logic of a program that allows the user to enter a value for the length of one edge of

• 2

This preview shows page 1 - 2 out of 2 pages.

1. Represent the logic of a program that allows the user to enter a value for the length of one edge of a cube. The program calculates the surface area of one side of the cube, the surface area of the cube, and its volume. The program outputs all the results. Start Input edge Set surfaceAreaOnside = (edge) 2 set surfaceAraCude = 6* (edge) 2 set volumeCube = (edge) 3 output surfaceAreaOnside output surfaceAreaCube ouput volumeCube Stop 2. Represent the logic of a program that allows the user to enter two values. The program outputs the product of the two values. Start Input myMumber1 Input myNumbre2 set myAnswer = myNumber1 * myNumber2 output myAnswer Stop 3. Represent the logic of a program that allows the user to enter values for the

#### You've reached the end of your free preview.

Unformatted text preview: width and length of a room's floor in feet. The program outputs the area of the floor in square feet. Start Input roomWidth Input roomLenght set myAnswer = roomLenght * roomWith output myAnswer Stop 4. Modify the program that computes floor area to compute and output the number of 6-inch square tiles needed to tile the floor. 5. Represent the logic of a program that allows the user to enter values for a salesperson’s base salary, total sales, and commission rate. The program computes and outputs the salesperson’s pay by adding the base salary to the product of the total sales and commission rate....
View Full Document

• Fall '18

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern