Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The First Program: ramp.c In this program you will calculate the dimensions of a wheelchair ramp. Here are some things you need to know: The

image text in transcribed

The First Program: ramp.c In this program you will calculate the dimensions of a wheelchair ramp. Here are some things you need to know: The maximum allowable slope in any new construction is 1:12. That means for every 1 inch that the ramp rises vertically, there must be at least 12 inches horizontally. . A ramp that is more than 30 feet long (horizontally) must have a landing. Your program must: 1) Have header comments. Place them before the #include statements. Example: // CS 271 - PA 1 // Program name: ramp.c // Your name // Date you last worked on the program 2) 3) 4) 5) Have at few inline comments. Display a prompt and input the rise (decimal, inches). Determine whether the ramp requires a landing. If it does, display the message "The ramp requires a landing." Calculate the horizontal distance that the ramp will cover and the ramp length ( the diagonal | hypotenuse) Display the horizontal distance (in feet) with a meaningful message. Limit the value to 1 digit to the right of the decimal point. Display the ramp length (in feet) with a meaningful message. Limit the value to 1 digit to the right of the decimal point. 6 7) Test thoroughly. The grading rubric is in Canvas. Note: Grading will include a check to see whether your program correctly used the sqrt function from the math library

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

XML Data Management Native XML And XML Enabled Database Systems

Authors: Akmal Chaudhri, Awais Rashid, Roberto Zicari, John Fuller

1st Edition

0201844524, 978-0201844528

More Books

Students also viewed these Databases questions

Question

If ( A^2 - A + I = 0 ), then inverse of matrix ( A ) is?

Answered: 1 week ago