Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

The first set of inputs is the user's age ( in whole number years ) and name ( first and last ) , in that

The first set of inputs is the user's age (in whole number years) and name (first and last), in that order, each on its own separate line, following its prompt. The second set of inputs is the current outside temperature (in floating point degrees F), and the user's location (city), in that order, each on its own separate line, following its prompt. For example, with user-typed input bolded:
Enter your age: 21
Enter your name: Joe Student Enter the temperature outside right now What city are you in right now? San Ram
After both sets are read in, calculate two values: (1) the user's age two years from now, and (2) the temperature in degrees C. Finally, print the 4 input values and the two calculated values in the following 2-line format, spaced and punctuated per the example:
Joe Student is 21 years old now, and wi It's 45.642 degrees F in San Ramon --
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

More Books

Students also viewed these Databases questions