
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Problem 1 Assume you are filling a steel-walled, right circular cylinder with material. Assume the cylinder is open on top. Assume the wall thickness is 0.50 inch. Write a program that allows the user to determine the total weight of the cylinder and the material in it based on cylinder heights ranging from 4 to 8 feet, cylinder diameters ranging from 3 to 9 feet, and a material height ranging from 0 to the height of the cylinder. Use textboxes that allow the user to make inputs for cylinder height, cylinder diameter, material height, and material density. Allow the user the option of specifying if the diameter is inside or outside diameter. Find the density of steel and code that into the program (this should not be a user entry). Activate the program by a button on the spreadsheet. Return each of the above inputs to the spreadsheet with text in the spreadsheet identifying each item. Start your entries in Sheet 1, Cell A1. Return your final answer to the spreadsheet (i.e., the weight of the combined cylinder and the material it contains) with text in the spreadsheet identifying total weight. Include provisions to clear the program. Make the program automatically clear all entries when you close the form. Include validation to assure appropriate data inputs. Make sure the program warns the user if the material height exceeds the cylinder height, if the user enters negative numbers, or if the user enters a string when a number is required. Problem 2 Write a program for performing exponentiation as defined below: