Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribedimage text in transcribed

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 };

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

(1) f X(x).

Answered: 1 week ago

Question

6. Are my sources reliable?

Answered: 1 week ago

Question

5. Are my sources compelling?

Answered: 1 week ago