Question: code - C++ language only Problem 1 (20 points)- True/False. Submit a file named Answers.doc Answer the following true/false questions using the following code fragment.

code - C++ language only
code - C++ language only Problem 1 (20 points)- True/False. Submit a

Problem 1 (20 points)- True/False. Submit a file named Answers.doc Answer the following true/false questions using the following code fragment. You must correctly state WHY your answer is true or false in order to receive credit int main(int argc, char" argv) { vector exchange rates; string answer="start": float money: cout > answer: if (answer.compare("new")==0) 1. We can assume using is used in the completed code. 2. We can determine what the return type is of the compare function, 3. From the code fragment alone, all functions in the above code fragment have the same parameter types. 4. We can assume that a maximum of two headers are included in the program. 5. The if statement will only execute if the value of answer is true. Problem 2 (40 points)-Write a program. Submit a file named weight.cpp Create a program that continuously (10 points for continuously ronning allows a user to enter his or her weight in either pounds or kilos. The program should then convert the given weight (15 points for each unit of more total 30 points) Possible Sample Run 1 (your program does not have to match the following exactly. but should have the same functionality]: Please enter your name and weight. James 182 pounds Hi James- you weigh 82.5 kilos. Please enter your name and weight. Connor 78 Not enough info to convert. Please enter your name and weight Connor 78 kilos Hi Connor-you weigh 171.9 pounds. Please enter your name and weight exit Exiting

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!