CENGAGE MINDTAP Q Search this course ASHI Parallel Arrays in C++ Tasks JumpinJive.cpp + >- Terminal + { //set flag foundIt to true if addin found in 30 Enter coffee add-in or XXX to quit Input 31 :...


What's the error?


CENGAGE MINDTAP<br>Q Search this course<br>ASHI<br>Parallel Arrays in C++<br>Tasks<br>JumpinJive.cpp<br>+<br>>- Terminal<br>+<br>{<br>//set flag foundIt to true if addin found in<br>30<br>Enter coffee add-in or XXX to quit<br>Input<br>31<br>:<br>arrays addIns<br>Cream<br>32<br>foundIt = true;<br>33<br>break;<br>Whiskey<br>}<br>}<br>if (foundIt == true)<br>{<br>//print the name and price for a coffee add-in<br>cout<<> addIn; } // Write the rest of the program here. Expected Output e 49 .89 1.75 Order Total is $4.64 50 51 52 return 0; 53 } // End of main() Run checks A Submit 41% "/>
Extracted text: CENGAGE MINDTAP Q Search this course ASHI Parallel Arrays in C++ Tasks JumpinJive.cpp + >- Terminal + { //set flag foundIt to true if addin found in 30 Enter coffee add-in or XXX to quit Input 31 : arrays addIns Cream 32 foundIt = true; 33 break; Whiskey } } if (foundIt == true) { //print the name and price for a coffee add-in cout<"name:><><" price:=""><"sorry, we="" do="" not="" carry=""><« "enter="" coffee="" add-in="" or="" xxx="" to="" quit:="" ";="" cin="">> addIn; } // Write the rest of the program here. Expected Output e 49 .89 1.75 Order Total is $4.64 50 51 52 return 0; 53 } // End of main() Run checks A Submit 41%
CENGAGE MINDTAP<br>Q Search this course<br>ASHI<br>Parallel Arrays in C++<br>Tasks<br>JumpinJive.cpp<br>>_ Terminal<br>1 #include <iostream><br>Enter coffee add-in or XXX to quit<br>2 #include <string><br>Test Case ● Incomplete<br>:<br>3 using namespace std;<br>Test for invalid flavors<br>4<br>5 int main().<br>6 {<br>// Declare variables.<br>Input<br>7<br>// Add-in ordered<br>string addIn;<br>const int NUM_ITEMS = 5; // Named constant<br>8.<br>Caramel<br>XXX<br>// Initialized array of add-ins<br>string addIns[]<br>> addIn; Sorry we do not carry that. 20 Expected Output ® 21 Sorry we do not carry that. Order Total is $2 //run a while loop till value of addIn is not XXX while(addIn != "XXX") { 22 23 24 |lfar laon to abook ell. Run checks A Submit 41% "/>
Extracted text: CENGAGE MINDTAP Q Search this course ASHI Parallel Arrays in C++ Tasks JumpinJive.cpp >_ Terminal 1 #include Enter coffee add-in or XXX to quit 2 #include Test Case ● Incomplete : 3 using namespace std; Test for invalid flavors 4 5 int main(). 6 { // Declare variables. Input 7 // Add-in ordered string addIn; const int NUM_ITEMS = 5; // Named constant 8. Caramel XXX // Initialized array of add-ins string addIns[] "Amaretto", "Whiskey"}; // Initialized array of add-in prices double addInPrices[] = {.89, .25, .59, 1.50, 1.75}; bool foundIt = false; 10 11 {"Cream", "Cinnamon", "Chocolate", Output 12 Enter coffee add-in or XXX to quit: Car 13 14 // Flag variable // Loop control variable double orderTotal = 2.00; // All orders start with a 2.00 Sorry, we do not carry that. Enter coffee add-in or XXX to quit: XXX 15 int x; 16 charge 17 Results e // Get user input 18 Order Total is $2 19 cout < "enter="" coffee="" add-in="" or="" xxx="" to="" quit:="" ";="" cin="">> addIn; Sorry we do not carry that. 20 Expected Output ® 21 Sorry we do not carry that. Order Total is $2 //run a while loop till value of addIn is not XXX while(addIn != "XXX") { 22 23 24 |lfar laon to abook ell. Run checks A Submit 41%
Jun 06, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here