Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

I have provided the prompt and my code. I cannot get the spacing right and i keep getting the checks wrong. PLEASE HELP! Metric Conversion

I have provided the prompt and my code. I cannot get the spacing right and i keep getting the checks wrong. PLEASE HELP! Metric Conversion Part 3 main()
This will call the main() function and get your program to run.
Codio will run your program and send in various values in order to test. Click on the
Try It! button to run your program before clicking on the Check It! button.
If your program is not running, click on the Code Visualizer link to run your code line
by line. If that still doesn't help, copy the code to either IDLE or VS Code in order to
better debug this program.
Code Visualizer
x LAST RUN on 6/12/2024,4:52:34 PM
Check 1 failed
Output:
Enter degrees Fahrenheit: Degrees
Enter feet: Meters: 1.2192
Expected:
Enter degrees Fahrenheit:
Enter feet:
Degrees Celsius: 30
Meters: 1.2192
Check 2 failed
Output:
Enter degrees Fahrenheit: Degrees
Enter feet: Meters: 1.524
Expected:
Enter degrees Fahrenheit:
Enter feet:
Degrees Celsius: -20
Meters: 1.524
Check 3 failed
Output:
Enter degrees Fahrenheit: Degrees
Enter feet: Meters: 4.572
Expected:
Enter degrees Fahrenheit:
Enter feet:
Degrees Celsius: -3
Meters: 4.572
For this exercise you will get some experience in calling your functions from main().
To start copy and paste the code defining GetCelsius and GetMeters into the file to
the right underneath Type your code here.
Next define a main function that will declare 4 variables to hold on the degress
Fahrenheit, feet, degrees Celsius and meters. Next you will need to get degrees
Fahrenheit and feet from the user using the following prompts:
The two __ or underscores you see are representing spaces after the colon (.
Next you will call your two functions and print out those values to the screen. Codio
will supply the inputs for degrees Fahrenheit and feet. Your output prompts need to
look like the following:
Where you see __ that represents spaces.
Given 87 degrees Fahrenheit and 4 feet, your program should output the following:
If you type in all of your code and you don't see any output, it could be because you
did not call main(). At the very bottom of your code type in:
image text in transcribed

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 Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions