Write a program to simulate a bookstore

Assignment Help C/C++ Programming
Reference no: EM132211691

Question: Write a program to simulate a bookstore. The bookstore has two types of customers: those who are members of the bookstore and those who buy books from the bookstore only occasionally. Each member has to pay $10 yearly membership fee and receives a 5% discount on each book purchased. For each member, the bookstore keeps track of the number of books purchased and the total amount spent. For every elventh book that a member buys, the bookstore takes the average of the total amount of the last 10 books purcharsed, applies the amount as a discount, and then resets the total amount spent to 0. Write a program that can process up to 10 book titles and 5 members. Your program should contain a menu that gives the user different choices to effectively run the program; in other words, your program should be user driver.

Program uses c++ language

Code must be separated into bookType.h, and memberType.h header files, and bookTypeImp.cpp, memberTypeImp.cpp files, as well as the main .cpp file.

The program must also read from text files, BookData.txt, and MemberData.txt

Reference no: EM132211691

Questions Cloud

Write a program segment that computes given data : Write a program segment that computes 1 + 2 + 3 + ... + ( n - 1) + n , where n is a data value. Follow the loop body with an if statement that compares.
What is the fitted model : The file m-3m4608.txt contains two columns. Use the PACF of the squared returns to identify an ARCH model. What is the fitted model
Design build prototype weather information processing system : CSCI251 Advanced Programming - Apply the concepts learnt by developing a Weather Information Processing System - Learning about procedural programming
Calculate the subsidiary net cash payment : Calculate the subsidiary's net cash payment or receipt with the intermediary. At the second pricing, LIBOR equals 5.66 percent
Write a program to simulate a bookstore : Write a program to simulate a bookstore. The bookstore has two types of customers: those who are members of the bookstore and those who buy books from the books
Write a program that will picks out the individual words : Write a program that will take a sentence (a single String), picks out the individual words (substrings), and puts each of them into a String array.
How the grant program matches the funders interests : The appeal section should provide information about how the grant program matches the funder's interests or aligns with their funding priorities.
What is its ROE before and after the change : If ABC's parent changes its capital structure to include 40% debt, what is its ROE before and after the change? Assume interest rate on debt is 10%
What was the most important development in the history : Our text mentions use of an emergency hearing to approve a blood transfusion for a patient whose husband refused to grant permission.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create program that uses functions and reference parameters

Create program that uses functions and reference parameters, and asks user for the outside temperature.

  Write a program using vectors and iterators

Write a program using vectors and iterators that allows a user to maintain a personal list of DVD titles

  Write the code required to analyse and display the data

Calculate and store the average for each row and column. Determine and store the values for the Average Map.

  Write a webservices application

Write a webservices application that does a simple four function calculator

  Iimplement a client-server of the game

Iimplement a client-server version of the rock-paper-scissors-lizard-Spock game.

  Model-view-controller

Explain Model-View-Controller paradigm

  Design a nested program

How many levels of nesting are there in this design?

  Convert celsius temperatures to fahrenheit temperatures

Write a C++ program that converts Celsius Temperatures to Fahrenheit Temperatures.

  Evaluate and output the value in the given base

Write C program that will input two values from the user that are a Value and a Base with which you will evaluate and output the Value in the given Base.

  Design a base class shape with virtual functions

Design a base class shape with virtual functions

  Implementation of classes

Implementation of classes Chart and BarChart. Class barChart chould display a simple textual representation of the data

  Technical paper: memory management

Technical Paper: Memory Management, The intent of this paper is to provide you with an in depth knowledge of how memory is used in executing, your programs and its critical support for applications.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd