Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

Any help you could give on this would be great even if its only fundimentals CSI

ID: 3755384 • Letter: A

Question

Any help you could give on this would be great even if its only fundimentals

CSIS 123

Can you believe it’s almost mid-semester already?? You’ve been working SO hard these past few weeks and it’s time for a ROAD TRIP! Come on...turn off the computer, grab a friend or two, fill up your gas tank, crank up the tunes and hit the road.  

Your travels take you to a little roadside café out in the middle of rural America to a town called Murphyville. The café is owned by Mr. Murphy (can you see where this is going…?)    The café has a small restaurant, a gift shop and a musical jukebox that is stocked with some seriously old road trip songs.   You may choose one of two options with your project:

1) Model it after one you’ve visited in your travels OR

2) For those of you with a warped sense of humor, create a roadkill-themed business

Your job is to write a C++-based program that meets the following requirements. Leverage what we’ve studied in Chapters 1-5 of your book, in Codelab and discussed in class. You may work individually or pair up with ONE classmate to complete the work.   (If paired, each partner will submit the same VS17 Project Folder in Blackboard and will receive the same grade, so you’ll need to hold each other accountable!) For full credit you must use each of the following at least once in your program:

Input:   cin.get(ch) with ch being type char

Display: cout manipulators setw and setprecision

Control Structures: if, if…else, switch, while/do-while, for loop (at least one of each type)

In addition to the VS17 C++ code, you will also need to write and submit pseudocode and test cases for full credit and upload them into the corresponding Blackboard assignment in the midterm folder.

I will be using both the requirements contained in this document and the standard rubric when evaluating your work.   

Good luck and have fun!

You are the owner of Murphy’s (Roadkill) Café that sells a variety of delicious dishes found only in nature!   The café is open from 5:00 AM to 11:00 PM, 7 days a week. Inside of the café is a small souvenir shop that sells related items, open 8:00 AM – 8:00 PM Monday through Friday and 7:00 AM – 10:00 PM on the weekends. Also inside of the café is an old juke box that is stocked with some old road-trip themed songs.

OVERALL – CONTROL MENU (HINT: This is a great place for a switch statement)

Display a welcome banner showing name of café/store and asking potential patrons what time and day of the week they are planning to visit Murphys. You will need to be able to differentiate between AM and PM hours. HINT: It may be easiest to convert user input to a 24-hour format.   You’ll also need to determine if they are planning to order food, play some music, or look around in the gift shop. Perhaps, they want to do more than one thing.    You will write a control structure that will give them choices and execute menu options based on their selection.

MENU OPTION : CAFÉ  

Develop a menu for breakfast (available anytime Murphy’s Café is open) and a separate menu for lunch/dinner, available from 11:00 AM to 8:00 PM or until all lunch/dinner entree have been sold. You should determine how many of each lunch/dinner entree you have available to serve. You have an endless supply of breakfast food available.

Present the customer with menu options. You can ask them if they want breakfast or lunch/dinner or simply display what menu/entrees are available at that time/day and availability of remaining entrees. User should see a list of menu choices with a short description and a price per item. Items should be priced in dollars and cents. Use appropriate data type for monetary calculations and storage. Note if the customer is ordering from the breakfast or lunch/dinner menu.

Prompt the user to choose which menu item he/she would like. Customers can order more than one meal, but normally it’s one per customer. However, you need to provide an option for ordering more than one item. For lunch/dinner, they can’t order more servings than you have available to serve.

Once they are done ordering, display their total order: list item(s) ordered and price per item, food total, tax rate and tax due based on food total, and total cost for the meal + tax. Tip will be calculated after the satisfaction survey is taken. At Murphys everyone pays for their own meal – one customer per ticket.   Food is taxed at a constant rate of .04125.

After the meal is served survey the customer about the quality of their dining experience at Murphys (Roadkill) Café. You must have at least three levels on your survey scale and tip (between 10% and 20%) which will vary based on the satisfaction level. Because this is Murphys, the HIGHER the satisfaction level, the lower the tip.   Really bad food and service will score a server a nice big tip!  

Once calculated, add the tip to the total cost of food + tax and display.

Display a parting message to your customer. Must be “G”-rated.

MENU OPTION : JUKE BOX: (Inside of café – patrons can play music without ordering food)

The juke box is filled with some old songs about road trips.   At Murphys, you don’t get to pick your songs – you simply put quarters into the jukebox and it will play 3 minutes of the playlist, always starting at the top of the playlist.

You will need to place a copy of the file called CafeSongs.txt (download from Blackboard) in the same folder as your C++ project source code. It will be read for input. The file contains a list of songs and a decimal-based song duration.

1. Prompt user for the amount of money they are willing to spend today to hear old songs. Each .25 gets them 3 minutes of music. An entry of 0 will allow user exit from the juke box portion of the program.

2. Read the file and display the first song that will play to both the screen and an output file called “SongsPlayed.txt”   Determine if they have put in enough money in to hear another song. (You can start the next song, even if they don’t have enough money to finish playing it to the end.) If so, read and display the next song selection. (Both screen and output file.) Continue this process until you have played sufficient songs for the time purchased OR you encounter the end of the file.

3. Continue steps 1 & 2 above until such time as the user enters a zero to leave the jukebox (HINT: while loop, controlled with a sentinel)

MENU OPTION: SOUVENIR STORE (A small store, with a lockable door, inside of the café – patrons can shop without ordering food)

Displays a door sign welcoming customers to the store and showing name of store. Use the time and day entered above to determine if the store is open or closed. Display open/closed message as appropriate.

Present the customer with a list of items for sale with a short description and a price per item. Items should be priced in dollars and cents. Use appropriate data type for monetary calculations and storage. You will need to keep track of how many you sell to reorder each evening at closing.

Prompt the user to choose which menu item he/she would like. Customers can purchase one item or multiple – encourage them to buy many items! More profit for Murphy.

Once they are done ordering, display their total order: list item(s) purchased and price per item, merchandise total, tax rate and tax due based on merchandise total, and total cost for the merchandise + tax.

Souvenirs are taxed at a constant rate of .0725.

Before you exit the gift shop, calculate the number of items that need to be added to the nightly order for restocking. Display an order header, followed by the item, number to order and total cost of that item. Each nightly shipment, regardless of number of items ordered, has a $50 fuel surcharge and $100 delivery fee. Display total cost of merchandise ordered and total order (mdse + fees + fuel).

BEFORE YOU TURN IN YOUR ASSIGNMENT:

Remember to include lots of quality comments throughout your program for full credit! If working as a pair, put both team member’s name AND contribution (who designed, wrote, and tested which parts) in the comments at the top of your .cpp source code.

Once you/all team members are satisfied with their collective deliverables, upload a zipped version of the entire project folder, PSEUDOCODE, and testing documentation to each team member’s respective Blackboard assignment. Uploaded files MUST have a unique name that includes student name/initials.

Explanation / Answer


#include "stdafx.h"
#include <iostream>  
#include <fstream>
#include <cstring>
#include <iomanip>
#include <sstream>
#include <algorithm>

using namespace std;

int main()
{
   string dayAttending;
   char amORpm, cMenu = NULL, first_dayAttending;
   int standardTimeAttending, militaryTimeAttending = 0;
   bool storeStatus, cafeStatus;
   cout << endl;
   cout << "Welcome to Murphy's Roadkill Cafe!" << endl << endl;
   cout << "Cafe Hours: " << endl << "=================================" << endl;
   cout << "Sunday 5 AM - 11 PM" << endl << "Monday 5 AM - 11 PM" << endl << "Tuesday 5 AM - 11 PM" << endl << "Wednesday 5 AM - 11 PM" << endl << "Thursday 5 AM - 11 PM" << endl << "Friday 5 AM - 11 PM" << endl << "Saturday 5 AM - 11 PM" << endl << endl;
   cout << "Store Hours: " << endl << "=================================" << endl;
   cout << "Sunday 7 AM - 10 PM" << endl << "Monday 8 AM - 8 PM" << endl << "Tuesday 8 AM - 8 PM" << endl << "Wednesday 8 AM - 8 PM" << endl << "Thursday 8 AM - 8 PM" << endl << "Friday 8 AM - 8 PM" << endl << "Saturday 7 AM - 10 PM" << endl << endl;
   while (true)
   {
       cout << "What day of the week will you be attending?" << endl;
       getline(cin, dayAttending);
       transform(dayAttending.begin(), dayAttending.end(), dayAttending.begin(), tolower);
       cout << "And what hour of the day (Hour, a = AM or p = PM)?" << endl;
       cin >> standardTimeAttending >> amORpm;
       if (amORpm == 'p')
       {
           if (standardTimeAttending == 12)
           {
               militaryTimeAttending = 12;
               cout << "You have selected: " << dayAttending << " at " << standardTimeAttending << "PM" << endl;
               break;
           }
           else
           {
               militaryTimeAttending = standardTimeAttending + 12;
               cout << "You have selected: " << dayAttending << " at " << standardTimeAttending << "PM." << endl;
               break;
           }
       }
       else if (amORpm == 'a')
       {
           if (standardTimeAttending == 12)
           {
               militaryTimeAttending = 24;
               cout << "You have selected: " << dayAttending << " at " << standardTimeAttending << "AM" << endl;
               break;
           }
           else
           {
               militaryTimeAttending = standardTimeAttending;
               cout << "You have selected: " << dayAttending << " at " << standardTimeAttending << "AM" << endl;
               break;
           }
       }
   }
   system("PAUSE");
   system("CLS");
   first_dayAttending = dayAttending[0];
   cout << endl;
   string cafeItem1B_name = "Rat Egg Omlette", cafeItem2B_name = "Rabbit Leg Pancakes", cafeItem3B_name = "Armadillo Coffee";
   string cafeItem1L_name = "Rattle Snake Quesadilla", cafeItem2L_name = "Turtle Soup", cafeItem3L_name = "Ratatouille";
   double const cafeItem1B_price = 8.50, cafeItem2B_price = 11.00, cafeItem3B_price = 3.50;
   double const cafeItem1L_price = 7.50, cafeItem2L_price = 6.75, cafeItem3L_price = 15.00;
   int cafeItem1L_stock = 10, cafeItem2L_stock = 10, cafeItem3L_stock = 10;
   int cafeItem1B_order = 0, cafeItem2B_order = 0, cafeItem3B_order = 0, cafeItem1L_order = 0, cafeItem2L_order = 0, cafeItem3L_order = 0;
   int satisfaction;
   char cafeChoice = NULL;
   double total = 0, tax = 0;
   int jukeQuaters = 1;
   int songLength = 0, playTime =0;
   string songString, songName;
   ifstream infile;
   ofstream outfile;
   double const storeItem_1_price = 19.99, storeItem_2_price = 37.99, storeItem_3_price = 50.00, storeTax = 0.0725;
   double storeTotal = 0, restockTotal = 0;
   int storeItem_1_stock = 5, storeItem_2_stock = 5, storeItem_3_stock = 5;
   string storeItem_1_name = "Snowglobe[S]", storeItem_2_name = "Toy Roadkill[T]", storeItem_3_name = "Barrel of Mice[B]";
   char storeChoice = NULL;
   while (true) {
       system("CLS");
       if (((first_dayAttending == 'm') || (first_dayAttending == 't')) || ((first_dayAttending == 'w') || (first_dayAttending == 'f')) || (first_dayAttending == 's'))
       {
           if ((militaryTimeAttending >= 5) && (militaryTimeAttending <= 23))
           {
               cout << "Cafe[C] - OPEN" << endl;
               cafeStatus = true;
           }
           else if ((militaryTimeAttending <= 4) || (militaryTimeAttending == 24))
           {
               cout << "Cafe[C] - CLOSED" << endl;
               cafeStatus = false;
           }
       }
       if (((first_dayAttending == 'm') || (first_dayAttending == 't')) || ((first_dayAttending == 'w') || (first_dayAttending == 'f')))
       {
           if ((militaryTimeAttending >= 8) && (militaryTimeAttending <= 20))
           {
               cout << "Store[S] - OPEN" << endl;
               storeStatus = true;
           }
           else if ((militaryTimeAttending <= 7) || (militaryTimeAttending >= 21))
           {
               cout << "Store[S] - CLOSED" << endl;
               storeStatus = false;
           }
       }
       else if (first_dayAttending == 's')
       {
           if ((militaryTimeAttending >= 7) && (militaryTimeAttending <= 22))
           {
               cout << "Store[S] - OPEN" << endl;
               storeStatus = true;
           }
           else if ((militaryTimeAttending <= 6) || (militaryTimeAttending >= 23))
           {
               cout << "Store[S] - CLOSED" << endl;
               storeStatus = false;
           }
       }
       if (cafeStatus) cout << "Jukebox[J] - OPEN" << endl;
       else if (!(cafeStatus)) cout << "Jukebox[J] - CLOSED" << endl << endl;
       cout << endl << "'X' to exit" << endl << endl;
       cout << endl << "What would you like to do?" << endl << "(Press a letter): " << endl;
       cin.ignore(100, ' ');
       cin >> cMenu;
       if ((cMenu == 'x') || (cMenu == 'X')) break;
       switch (cMenu)
       {
       case 'C':
       case 'c':
       {
           system("CLS");

           while (true)
           {
               if (cafeStatus) {
                   cout << "++++++++++++++++++++++++++++++++" << endl << "BREAKFAST MENU           " << endl << "++++++++++++++++++++++++++++++++" << endl;
                   cout << "[A] Rat Egg Omlette          " << setw(10) << setfill(' ') << setprecision(2) << showpoint << fixed << cafeItem1B_price << endl;
                   cout << "[B] Rabbit Leg Pancakes      " << setw(10) << setfill(' ') << setprecision(2) << showpoint << fixed << cafeItem2B_price << endl;
                   cout << "[C] Armadillo Coffee         " << setw(10) << setfill(' ') << setprecision(2) << showpoint << fixed << cafeItem3B_price << endl << endl;

                   if ((militaryTimeAttending >= 11) && (militaryTimeAttending <= 20)) {
                       cout << "++++++++++++++++++++++++++++++++" << endl << "LUNCH/DINNER MENU        " << endl << "++++++++++++++++++++++++++++++++" << endl;
                       cout << "[D] Rattle Snake Quesadilla " << setw(10) << setfill(' ') << setprecision(2) << showpoint << fixed << cafeItem1L_price << " - " << cafeItem1L_stock << " Remaining" << endl;
                       cout << "[E] Turtle Soup              " << setw(10) << setfill(' ') << setprecision(2) << showpoint << fixed << cafeItem2L_price << " - " << cafeItem2L_stock << " Remaining" << endl;
                       cout << "[F] Ratatouille              " << setw(10) << setfill(' ') << setprecision(2) << showpoint << fixed << cafeItem3B_price << " - " << cafeItem3L_stock << " Remaining" << endl << endl;
                   }
                   else if ((militaryTimeAttending < 11) || (militaryTimeAttending > 16)) {
                       cout << "LUNCH/DINNER MENU        " << setw(10) << setfill(' ') << "NOT SERVED AT THIS TIME" << endl << endl;
                   }
               }

               else if (!(cafeStatus)) {
                   cout << "BREAKFAST MENU           " << setw(10) << setfill(' ') << "NOT SERVED AT THIS TIME" << endl << endl;
                   cout << "LUNCH/DINNER MENU        " << setw(10) << setfill(' ') << "NOT SERVED AT THIS TIME" << endl << endl;
               }


               cout << "What would you like? (Press letter of corresponding item)" << endl << "'T' for bill" << endl << "'X' to return to control menu" << endl << endl;
               cin >> cafeChoice;

               if ((cafeChoice == 'x') || (cafeChoice == 'X')) break;

               switch (cafeChoice)
               {
               case 'A':
               case 'a':
               {
                   total += cafeItem1B_price;
                   cafeItem1B_order++;
                   system("CLS");
                   break;
               }
               case 'B':
               case 'b':
               {
                   total += cafeItem2B_price;
                   cafeItem2B_order++;
                   system("CLS");
                   break;
               }
               case 'C':
               case 'c':
               {
                   total += cafeItem3B_price;
                   cafeItem3B_order++;
                   system("CLS");
                   break;
               }
               case 'D':
               case 'd':
               {
                   if (cafeItem1L_stock > 0) {
                       total += cafeItem1L_price;
                       cafeItem1L_order++;
                       cafeItem1L_stock--;
                       system("CLS");
                       break;
                   }
                   else if (cafeItem1L_stock <= 0) {
                       cout << "Sorry! That item is not available!" << endl;
                       system("PAUSE");
                       system("CLS");
                       break;
                   }
               }
               case 'E':
               case 'e':
               {
                   if (cafeItem2L_stock > 0) {
                       total += cafeItem1L_price;
                       cafeItem2L_order++;
                       cafeItem2L_stock--;
                       system("CLS");
                       break;
                   }
                   else if (cafeItem2L_stock <= 0) {
                       cout << "Sorry! That item is not available!" << endl;
                       system("PAUSE");
                       system("CLS");
                       break;
                   }
               }
               case 'F':
               case 'f':
               {
                   if (cafeItem3L_stock > 0) {
                       total += cafeItem1L_price;
                       cafeItem3L_order++;
                       cafeItem3L_stock--;
                       system("CLS");
                       break;
                   }
                   else if (cafeItem3L_stock <= 0) {
                       cout << "Sorry! That item is not available!" << endl;
                       system("PAUSE");
                       system("CLS");
                       break;
                   }
               }
               case 'T':
               case 't':
               {
                   system("CLS");
                   if (cafeItem1B_order > 0) {
                       cout << cafeItem1B_order << setw(4) << " x " << cafeItem1B_name << " = ";
                       cout << setw(10) << setprecision(2) << showpoint << fixed << (cafeItem1B_price * cafeItem1B_price) << endl;
                   }
                   if (cafeItem2B_order > 0) {
                       cout << cafeItem2B_order << setw(4) << " x " << cafeItem2B_name << " = ";
                       cout << setw(10) << setprecision(2) << showpoint << fixed << (cafeItem2B_price * cafeItem2B_order) << endl;
                   }
                   if (cafeItem3B_order > 0) {
                       cout << cafeItem3B_order << setw(4) << " x " << cafeItem3B_name << " = ";
                       cout << setw(10) << setprecision(2) << showpoint << fixed << (cafeItem3B_price * cafeItem3B_order) << endl;
                   }
                   if (cafeItem1L_order > 0) {
                       cout << cafeItem1L_order << setw(4) << " x " << cafeItem1L_name << " = ";
                       cout << setw(10) << setprecision(2) << showpoint << fixed << (cafeItem1L_price * cafeItem1L_order) << endl;
                   }
                   if (cafeItem2L_order > 0) {
                       cout << cafeItem2L_order << setw(4) << " x " << cafeItem2L_name << " = ";
                       cout << setw(10) << setprecision(2) << showpoint << fixed << (cafeItem2L_price * cafeItem2L_order) << endl;
                   }
                   if (cafeItem3L_order > 0) {
                       cout << cafeItem3L_order << setw(4) << " x " << cafeItem3L_name << " = ";
                       cout << setw(10) << setprecision(2) << showpoint << fixed << (cafeItem3L_price * cafeItem3L_order) << endl;
                   }
                   cout << endl << endl << "Sub-total: " << "$" << setprecision(2) << showpoint << fixed << total << endl;
                   tax = (total * 0.04125);
                   cout << "Tax (4.125%): " << "$" << setprecision(2) << showpoint << fixed << tax << endl;
                   cout << "Total: " << "$" << setprecision(2) << showpoint << fixed << (total + tax) << endl << endl;

                   cout << "We hope you enjoyed your meal, how satisfied are you on a scale of 1 - 5 (1 = Very Unhappy, 5 = Very Happy): ";
                   cin >> satisfaction;
                   if (satisfaction == 3) {
                       cout << "In that case, you should tip $" << ((total + tax) * 0.15) << endl;
                   }
                   if (satisfaction > 3) {
                       cout << "In that case, you should tip $" << ((total + tax) * 0.10) << endl;

                   }
                   if (satisfaction < 3) {
                       cout << "In that case, you should tip $" << ((total + tax) * 0.20) << endl;
                   }
                   system("PAUSE");
                   system("CLS");
                   cout << "Thanks for your money sucker, now get out!" << endl;
                   system("PAUSE");
                   system("CLS");
                   break;
               }
               }
           }
           break;
       }
       case 'J':
       case 'j':
       {
           while (cafeStatus)
           {
               system("CLS");
               cout << "MURPH BOX v.01" << endl << endl;
               cout << "25 cents for 3 minutes of play time Number of quaters: ";
               cin >> jukeQuaters;
               infile.open("CafeSongs.txt");
               outfile.open("SongsPlayed.txt", std::ofstream::trunc);
               if (jukeQuaters == 0) break;
               if (infile.is_open())
               {
                   playTime = (jukeQuaters * 3);
                   cout << endl << "You get " << playTime << " minutes of playtime ";
                   while (getline(infile, songString))
                   {
                       istringstream ss(songString);
                       ss >> songName >> songLength;
                       if (playTime >= 0)
                       {
                           cout << "NOW PLAYING: " << songName << endl << endl;
                           playTime -= songLength;
                           outfile << songName << endl;

                       }
                       else break;
                   }
                   system("PAUSE");
               }
               else cout << "Unable to open file" << endl;
               infile.close();
           }
           outfile.close();
           cout << "Thank you for using MURPH BOX, have a good day!" << endl;
           system("PAUSE");
           break;
       }
       case 'S':
       case 's':
       {
           while (true) {
               system("CLS");
               cout << "Welcome to Murphy's gift shop" << endl << "We are currently: ";
               if (storeStatus) {
                       cout << "OPEN";
                       cout << endl << endl << "FOR SALE:" << endl;
                       cout << storeItem_1_name << "      " << setprecision(2) << showpoint << fixed << storeItem_1_price << " - Remaining: " << storeItem_1_stock << endl;
                       cout << ' ' << "A slightly damaged Snowglobe. (Snow not included)" << endl << endl;

                       cout << storeItem_2_name << "      " << setprecision(2) << showpoint << fixed << storeItem_2_price << " - Remaining: " << storeItem_2_stock << endl;
                       cout << ' ' << "The catch of the day in toy form!" << endl << endl;

                       cout << storeItem_3_name << "      " << setprecision(2) << showpoint << fixed << storeItem_3_price << " - Remaining: " << storeItem_3_stock << endl;
                       cout << ' ' << "Like a barrel of monkeys but worse!" << endl << endl;
               }
               else if (!(storeStatus)) cout << "CLOSED";
               cout << "What would you like?" << endl << "'X' if done" << endl << "'C' to checkout " << endl << "Press letter of item: ";
               cin >> storeChoice;
               cout << endl;
               if ((storeChoice == 'x') || (storeChoice == 'X')) break;
               switch (storeChoice) {
               case 'S':
               case 's':
               {
                   if (storeItem_1_stock > 0) {
                       storeTotal += storeItem_1_price;
                       storeItem_1_stock--;
                       system("CLS");
                       break;
                   }
                   else if (storeItem_1_stock <= 0) {
                       cout << "Sorry that item is out of stock" << endl;
                       system("PAUSE");
                       system("CLS");
                       break;
                   }
               }
               case 'T':
               case 't':
               {
                   if (storeItem_2_stock > 0) {
                       storeTotal += storeItem_2_price;
                       storeItem_2_stock--;
                       system("CLS");
                       break;
                   }
                   else if (storeItem_2_stock <= 0) {
                       cout << "Sorry that item is out of stock" << endl;
                       system("PAUSE");
                       system("CLS");
                       break;
                   }
               }
               case 'B':
               case 'b':
               {
                   if (storeItem_3_stock > 0) {
                       storeTotal += storeItem_3_price;
                       storeItem_3_stock--;
                       system("CLS");
                       break;
                   }
                   else if (storeItem_3_stock <= 0) {
                       cout << "Sorry that item is out of stock" << endl;
                       system("PAUSE");
                       system("CLS");
                       break;
                   }
               }
               case 'C':
               case 'c':
               {
                   system("CLS");
                   cout << endl << "CHECKOUT" << endl << endl;
                   if (storeItem_1_stock < 5) {
                       cout << (5 - storeItem_1_stock) << " x " << storeItem_1_name << setw(10) << setfill ('-') << setprecision(2) << showpoint << fixed << ((5 - storeItem_1_stock) * storeItem_1_price) << endl;
                   }
                   if (storeItem_2_stock < 5) {
                       cout << (5 - storeItem_2_stock) << " x " << storeItem_2_name << setw(10) << setfill('-') << setprecision(2) << showpoint << fixed << ((5 - storeItem_2_stock) * storeItem_2_price) << endl;
                   }
                   if (storeItem_3_stock < 5) {
                       cout << (5 - storeItem_3_stock) << " x " << storeItem_3_name << setw(10) << setfill('-') << setprecision(2) << showpoint << fixed << ((5 - storeItem_3_stock) * storeItem_3_price) << endl;
                   }
                   cout << "Thank you for shopping at Murphy's Souviener Shop" << endl;
                   cout << endl << "Subtotal: " << storeTotal;
                   cout << endl << "Tax(7.25%): " << (storeTotal * storeTax);
                   cout << endl << "Subtotal: " << ((storeTotal * storeTax) + storeTotal);
                   cout << endl << endl;
                   cout << "ORDER FORM" << endl;
                   cout << "ITEM - # NEEDED - COST" << endl;
                   if (storeItem_1_stock < 5) {
                       cout << storeItem_1_name << " - " << (5 - storeItem_1_stock) << " - " << setprecision(2) << showpoint << fixed << ((5 - storeItem_1_stock) * storeItem_1_price) << endl;
                       restockTotal += (((5 - storeItem_1_stock) * storeItem_1_price));
                   }
                   if (storeItem_2_stock < 5) {
                       cout << storeItem_2_name << " - " << (5 - storeItem_2_stock) << " - " << setprecision(2) << showpoint << fixed << ((5 - storeItem_2_stock) * storeItem_2_price) << endl;
                       restockTotal += (((5 - storeItem_2_stock) * storeItem_2_price));
                   }
                   if (storeItem_3_stock < 5) {
                       cout << storeItem_3_name << " - " << (5 - storeItem_3_stock) << " - " << setprecision(2) << showpoint << fixed << ((5 - storeItem_3_stock) * storeItem_3_price) << endl;
                       restockTotal += (((5 - storeItem_3_stock) * storeItem_3_price));
                   }
                   cout << endl << setprecision(2) << showpoint << fixed << restockTotal << " + 50 (fuel) + 100 (delivery fee) = $"<< setprecision(2)<< showpoint << fixed << (restockTotal + 150) << endl << endl;

                   system("PAUSE");
               }
               }
           }
           system("PAUSE");
           break;
       }

       }
   }
system("PAUSE");
   return 0;
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote