Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Please answer in C++ ... Thank you. 1. Write a program that converts fahrenheit temperatures to celcius temperatures. Look up the current weather forecast in

Please answer in C++ ... Thank you.

1. Write a program that converts fahrenheit temperatures to celcius temperatures. Look up the current weather forecast in Seattle and grab the daily high and low temperature estimates for the next week (14 values). Put these values into an array (Don't use links). Make sure these are fahrenheit measurements. Then write a program that converts each one of these values to a celcius measurement and prints it out to the console on a single line as a comma-separated list of numbers.

Note: Yes, you may use a loop if you would like to make the code easier to write.

Sample Output:

> 9, 5, 10, 4, 11, 3, ...

2. Write a program which uses the quadratic formula to find the roots of a quadratic equation. A quadratic equation is of the form ax2 + bx + c = 0. Prompt the user to input values for a, b, and c and then print out the roots to the console

Sample Output:

> Enter a value for 'a': <> > Enter a value for 'b': <> > Enter a value for 'c': <> > Roots are <> and <>

Please answer in C++ ... Thank you.

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