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 to Expert-Tailored Solutions

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

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

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

Database Processing Fundamentals Design And Implementation

Authors: KROENKE DAVID M.

1st Edition

8120322258, 978-8120322257

More Books

Students also viewed these Databases questions

Question

What would you do about the verbal homophobic and racial insults?

Answered: 1 week ago

Question

1. Describe the types of power that effective leaders employ

Answered: 1 week ago