Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Create three different vectors of double type to store the three different lists oftemperatures ( Celsius , Fahrenheit, Kelvin ) Create a function that displays

Create three different vectors of double type to store the three different lists oftemperatures (Celsius, Fahrenheit, Kelvin) Create a function that displays the menu of options to the user Create a function that converts Celsius to Fahrenheit. This function should return adouble value (F temp) and accept a double value in its parameter (C temp) Create a function that converts Celsius to Kelvin. This function should return a doublevalue (K temp) and accept a double value in its parameter (C temp) Create a function that loads all the information from the temps.txt file into the threedifferent vectors. Make sure you read from the file using stringstream. Also, this functionshould only be called once at the start of the main(). Create a function that displays the current values stored in the three vectors when the userenters command v. Display these values in a table format which you can format at yourown preference. Make sure the parameters for this function are const since we dont wantto change the contents of these vectors, only display their values. Create a function that adds a new set of temperatures to the three vectors when the userenters command a. This function should only ask the user for the Celsius value. Then,with that value call the functions that convert to the other 2 temperatures. Create a function that saves the current contents of the three vectors by writing them intothe temps.txt file. This function should be called after adding a new set of temperatures inorder to save these changes successfully.

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

Visual Basic 4 Ole Database And Controls Superbible

Authors: Michael Hatmaker, C. Woody Butler, Ibrahim Malluf, Bill Potter

1st Edition

1571690077, 978-1571690074

More Books

Students also viewed these Databases questions

Question

6. Have you used solid reasoning in your argument?

Answered: 1 week ago