Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

fari File Edit View History Bookmarks Window Help web.njt.edu New Jersey Institute of Technology Moodle https://web.njit.edu/-kapleau 1. Write a program to convert inches to yards,

image text in transcribed

fari File Edit View History Bookmarks Window Help web.njt.edu New Jersey Institute of Technology Moodle https://web.njit.edu/-kapleau 1. Write a program to convert inches to yards, feet, and inches. Prompt the user to enter the number of inches. If the user enters a negative value, chastise the user, and do not print the conversion. 2. Write a program to convert celsius to fahrenheit. Prompt the user to enter the celsius value. If the entered value is less than absolute zero (273.15 degrees celsius), print a message stating such tempuratures are not possible, and do not print the conversion. 3. Write a program to convert fahrenheit to celsius. Prompt the user to enter the fahrenheit value. If the entered value is equal to the boiling point of water (212 degrees fahrenheit), print a message stating that the tempurature is "hot", but do not print the conversion. 4. Write a program to convert yards, feet, and inches into inches. Prompt the user to enter values for yards feet and inches. If any of the entered values are negative, print a message chastising the user, and do not print the conversion. Use one (1) 'if statement with the conditions all joined by a logical operator. 5. Write a program to prompt the user for their age. If the users age is less than 17 tell them they are a genius. If the users age is between 17 and 22 inclusive, welcome them to college life. If the user is older than 22 mock their old age, unless they are exactly 40, in which case tell them that 40 is the new 30- Use chained and nested conditionals where ever possible

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

Students also viewed these Databases questions