Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CMSC140 Project 2Chapter 3 Fall2017() (Protected View) - Word References Mailings ReviewView9 Tell me what you want to do an contain viruses. Unless you need

image text in transcribed

CMSC140 Project 2Chapter 3 Fall2017() (Protected View) - Word References Mailings ReviewView9 Tell me what you want to do an contain viruses. Unless you need to edit, it's safer to stay in Protected View Enable Editing Program 2: Crystal Pyramid Program specification Bobby's Crystal needs a program to calculate the weight of the crystal that they woul need to manufacture a pyramid souvenir of a given specification. The program shou perform the following steps A) Ask the user for the length and width of the pyramid's base in inches B) Ask the user for the height of the pyramid in inches C) Calculate the Volume of the pyramid in cubic inches D) Display a message telling the weight of the crystal materials required to mold th pyramid To calculate the weight of the crystal to build the pyramid, you must use the followir Assume that the base is rectangular having a length and a width . To calculate the volume of the pyramid, use the formula: (Area of the bas x height) 3. Assume that a pound of crystal may be used to mold 27.7 cubic inches pyramid volume, calculate the total weight of the crystal materials required f the molding. CAUsersla .14OProject2.ee Enter the length of the pyramid in inches: 8 Enter the width of the pyramid in inches: 6 Enter the height of the pyramid in inches: 7 The rectangular-based pyramid with length 8.0 inches, ith width 6.0 inches, and with a height of 7.0 inches will require 4.e pounds of crystal material to mold it Press any key to continue 1 /1 /\/\/\/\/\ N-N-N-Ny

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

DATABASE Administrator Make A Difference

Authors: Mohciine Elmourabit

1st Edition

B0CGM7XG75, 978-1722657802

More Books

Students also viewed these Databases questions

Question

=+such as the dirigenti in Italy?

Answered: 1 week ago

Question

=+ Are there closed-shop requirements or practices?

Answered: 1 week ago