Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

C++ a weather program that will write Wear Winter Jacket if the temperature is or equal to 32, otherwise if the temperature is between 32

C++
image text in transcribed
a weather program that will write "Wear Winter Jacket" if the temperature is or equal to 32, otherwise if the temperature is between 32 and 55 it wil ear Light Jacket", otherwise if it is greater than 55 it will write "May not 5. Write less than write need temperature jacket". Declare a variable called Temp, and ask the user to input Write a program segment that asks the user to input 2 numbers. If the first is less than the second, it writes First is less than Second'. If the first is greater than the second it writes First is greater than Second'. If the first is equal to the second it writes First is equal to Second 6. Write a Grading program that accepts a SCORE (between 0 and 100) from the user and writes 'Grade A' if the score is 90 or greater, otherwise if the score is between 80 and 89 it writes 'Grade B', otherwise if the score is between 70 and 79 it writes Grade C, otherwise if it is less than 69 it writes 'Grade F". 7. 8. Write a parkingCharge program that reads a character code for vehicle-like 'c' for car, 'b' for bus and 't' for truck. If it's a car then it'll write 'car- pay $2.00 an hour', or else if it is bus, it'll write 'bus-pay $3.00 an hour', otherwise it'll write truck- pay $4.00 an hour

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