Question: In C++ Starting Code: include #include // DO NOT CHANGE CODE from here to line 11 void test_vars(double testMoney, bool testTrue) { assert(testMoney==250.25); assert(testTrue==false); }

In C++

In C++ Starting Code: include #include // DO NOT CHANGE CODE from

Starting Code:

include #include // DO NOT CHANGE CODE from here to line 11 void test_vars(double testMoney, bool testTrue) { assert(testMoney==250.25); assert(testTrue==false); } int main() { /* Add your own description here, just a line or two // Add code here // DO NOT CHANGE THIS CODE (ensure variable names match and red error will disappear) //test_vars(money, isTrue); // uncomment when ready to test }

First add a comment describing what this code will do (simple one or two lines) Create (and assign) the following variables: Create a boolean variable called "isTrue" and set it to false Create a double variable called "money" and set it to 99999.99 Then create the following output: Print the words "money ="first Then print the variable "money" (followed by a space) Then print the variable "isTrue" without skipping to the next line. Finally re-assign and print "money": Re-assign "money" by setting it to 250.25 Print "money" on its own line Expected Output If the variables are correctly set then the automate test will work. If not it will stop the program with an error. money - 99999.99 false 250.25

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!