Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
image text in transcribed
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, quantity per order, and total price for the order calculated using Table 1 plus 5% tax. Beverage Mocha Grande $4.00 Tall $3.50 $3.00 $2.50 $3.00 Venti $4.50 $4.00 $3.50 Latte Chai $3.50 $3.00 $3.50 Matcha $4.00 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 -.cache/fr-VasSmF/hwo2 Open- all: Mocha.o mochajoe.o g++ Mocha.o mochajoe.o-o mocha Mocha.o: Mocha.cpp g++ Mocha.cpp -C mochajoe.o: mochajoe.cpp g++ mochajoe.cpp -C run: SA ./mocha clean: rm Mocha.o mochajoe.o mocha Mocha.cpp --/.cache/.fr-Kgbym 6/hw02 Open A #include "Mocha.h" 1/Member functions are defined here TEL EUILUT Open A Mocha.h --/.cache/.fr-zW3584/hwo2 #include #include #include using namespace std; class Mocha // Define your class here mochajoe.cpp --/.cache/fr-SqYs8d/hw2 Open A #include "Mocha. /* 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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered 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

Students also viewed these Databases questions