Question: IN C++ Mocha.cpp #include Mocha.h //Member functions are defined here Mocha.h #include #include #include #include using namespace std; class Mocha{ // Define your class here


IN C++
Mocha.cpp
#include "Mocha.h"
//Member functions are defined here
Mocha.h
#include
using namespace std;
class Mocha{ // Define your class here };
mochajoe.cpp
#include "Mocha.h"
/* This is main program * Create objects of Mocha inside main function * Use setOrder and DisplayReceipt of Mocha class to set and display * the order */
int main(void){
return 0; }
2. [30 pts] Mocha Joe's Develop a POS (Point of Sales) system in C++ for Mocha Joe's Coffee shop. The PoS system consists of a class defined in Mocha.h and member definitions in Mocha.cpp. The class consists of member variables to hold the name of the customer, type of beverage, size of beverage, quantitly per order, and total price for the order calculated using Table 1 plus 5% tax. | Beverage Mocha Tall $3.50 $3.00 $2.50 $3.00 Grande $4.00 $3.50 Latte Chai Ventil $4.50 $4.00 $3.50 $4.00 $3.00 Matcha $3.50 Table 1: Mocha Joe's Menu Generate an order number that increments on every order. Create a public member functions that takes the order and displays the receipt. Test this class by creating five different orders (either as single or multiple class instance) in mochajoe.cpp. A sample output is shown in Figure 1. The makefile and sample files are provided. makefile - Notepad File Edit Format View Help all: Mocha.o mochajoe.o g++ Mocha.o mochajoe. o -o mocha Mocha.o: Mocha.cpp g++ Mocha.cpp - mochajoe.o: mochajoe.cpp g++ mochajoe.cpp -C run: ./mocha clean: rm Mocha.o mochajoe.o mocha
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
