COMPUTER SCIENCE PRACTICE TEST and Extra Credit Programs

Your test will be like your box program. You will have to complete a process chart like you used. I will give you the specifications. You will have to write all steps in the design recipe.

 

      Use the design recipe in all problems.

      Do a process chart of examples using 10, 20 and 30 for the variable consumed.

      Construct the geometric object and label with the exact and variable measures.

 

Prism

 

         Write a program that finds the surface area of a cube.

         Write a program that finds the volume of a cube.

         Write a program that finds the amount of ribbon needed to wrap a cube (perimeter).

         Write a program that finds the difference between the surface area of a cube and a prism whose height is 2 times the width of the cube.

         Write a program that finds the difference between the volume of a cube and a prism whose height is 2 times the width of the cube.

 

Cylinder and Cone Programs

 

Cylinder

         Write programs to find the surface area and volume of a cylinder. Both programs consume the radius of the cylinder. The height is 4 more then 2 times the radius.

 

Cone

         Write programs to find the surface area and volume of a cone. Both programs consume the radius of the base. The height is 3 less then 2 times the radius.

 

         Write programs that find the difference between the surface area of a cone and cylinder and the difference between the volume of a cone and cylinder when the radius and scale factor for the height is the same for both shapes. Compare and contrast the range of data using a pattern for the domain (input) data.

 

Prism and Pyramid

 

Pyramid

         Write a program that finds the surface area and volume of a pyramid. The height is 5 more than 2 times the length of one side of the square base.

 

Prism

         Write a program that finds the surface area and volume of a prism with a square base. The height is 4 less then 3 times the length of one side of the base.

 

         Write programs that find the difference between the surface area of a pyramid and prism, and the difference between the volume of a pryamid and prism when the width and scale factor for the height is the same for both shapes. Compare and contrast the range of data using a pattern for the domain (input) data.

 

Sphere and Cube

 

         Write a program that finds the volume of a sphere.

         Write a program that finds the volume of a cube.

         Write a program that finds the difference between the volume of a sphere and cube where the width of the cube is 2 times the radius of the sphere.