Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

What is going on, is there I am wrong ? Please tell me in full and everything and make it understandable. 2. Write a program

image text in transcribed

image text in transcribed

image text in transcribed

What is going on, is there I am wrong ? Please tell me in full and everything and make it understandable.

2. Write a program that will compute the surface area and the volume of a box. The program should prompt the user to enter the length, width, and height of the box (all in inches), read these numbers, and then calculate and display the box surface area and volume. Note: Box surface area = 2(/w + lh + wh) and box volume = lwh, where I = box length, w= box width, and h = box height. You should assume that the box length, width, and height entered will be positive integer values. Here is what output should look like from running the program (user input is shown in bold): Enter box length, width, and height (inches): 6 29 Box surface area = 168 square inches Box volume = 108 cubic inches Question 2 Solution Variables required (names and types): Length width, height Pseudocode solution: Display "Enter box length, width and height (inches)" Read the length, width, and height Let the variable surface area = 2(length*width + length*height + width"height) Let the variable volume = length*width"height Display "Box surface area in square inches =" and surface area Display Box volume in cubic inches =" and volume Untitled2.c. Code:Blocks 17.12 Edit View Search Project Build Debug Fortran wxSmith Tools Tools Plugins DoxyBlocks Settings Help cement Start here X Untitled2.c X Tojects Symbols Files Current file's symbols eingute inches and auttade Symbols Global functions 09 Global typedefs Global variables Macro definitions Macro usages - Logs & others Code::Blodex Search results X Cooc X Buldlog X Build messages x CopCheck Nera++ X c ppCheck Nerat messages X Cacope X Debug File Line Message - Build file: "no target" in "no project" (compiler: unknown) - III: expected identitier or 'I' before I -- Build failed: 1 error(s). O warning(s) 0 minute(s), 0 second(s)) == C:\Users\Sulei...1 Read/Write Insert default default Line 1 Col 1, Pos 0 Line I, CO, Windows (CRLF) uleiman\AppData\Roaming\MicrosoftWindows\Start Menu\p C/C++ 7:39 PM

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

MongoDB Applied Design Patterns Practical Use Cases With The Leading NoSQL Database

Authors: Rick Copeland

1st Edition

1449340040, 978-1449340049

More Books

Students also viewed these Databases questions

Question

outline some of the current issues facing HR managers

Answered: 1 week ago