Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please help i cannot get it to print right and the numbers are coming out wrong. I need 3 0 to print and 3 0

Please help i cannot get it to print right and the numbers are coming out wrong. I need 30 to print and 30.56 keeps coming out, and all the other ones i have tried and seen haven't worked/helped either. Check 1 failed
Output:
Enter degrees Fahrenheit: Enter feet: Des
Meters: 1.2192
Expected:
Enter degrees Fahrenheit:
Enter feet:
Degrees Celsius: 30
Meters: 1.2192
Check 2 failed
Output:
Enter degrees Fahrenheit: Enter feet: Des
Meters: 1.5240
Expected:
Enter degrees Fahrenheit:
Enter feet:
Degrees Celsius: -20
Meters: 1.524
Check 3 failed
Output:
Enter degrees Fahrenheit: Enter feet: Des
Meters: 4.5720
Expected:
Enter degrees Fahrenheit:
Enter feet:
Degrees Celsius: -3
Meters: ,4.572 Metric Conversion Part 3
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

Object Oriented Databases Prentice Hall International Series In Computer Science

Authors: John G. Hughes

1st Edition

0136298745, 978-0136298748

More Books

Students also viewed these Databases questions