Special discounts for students and pensioners

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

NuMetro has a special on movies for all members of the public but special discounts for students and pensioners. If pensioners or students buy a movie ticket they receive 10% if they buy a movie and popcorns, they receive 20% discount. Other customers only receive a discount when they buy a movie ticket and popcorn; there is no discount for just a movie ticket alone. Write a program named question5b.cpp that will consist of two functions. The program must prompt the user for type of customer ('p' for pensioner, 's' for student, 'o' for other). It must then call the relevant function according to that entry. The first function must receive the customer type and calculates discount for pensioners and students. The second function calculates the discount for customers that are not pensioners or students.

Reference no: EM132432151

Questions Cloud

Compare two to three commonly used intellectual assessments : Explain the effect of testing bias on the client in the private and school-based settings.Describe how intellectual and achievement assessment has progressed
Mitigate worst of the future climate change costs : Future costs of Climate Change are largely unknown what are some ideas that emerge from IPE that might help mitigate worst of the future "climate change costs
Calculate employee weekly pay : Write a program named question6c.cpp that demonstrates the use of the following functions. A C++ function named getName()prompts the user for two string values
Describing the history of International Financial Reporting : History details and all the changes regarding this Standard when and what changed made. Plus what was the exposures drafts of IAS 11 and describe requirements
Special discounts for students and pensioners : NuMetro has a special on movies for all members of the public but special discounts for students and pensioners. If pensioners or students buy a movie ticket
Grade for an assignment as a percentage : The program that computes a student's grade for an assignment as a percentage given the student's score and total points. The final score must be rounded up
Record the transactions in Speedy Transport Ltds journal : Speedy has a separate accumulated depreciation account for each of these assets except Land. Record the transactions in Speedy Transport Ltd.'s journal
Graphic Display Of Sociological Theories Assignment : Graphic Display Of Sociological Theories Assignment help and solutions:- illustrate the relationship between the foundational sociological theories
How much the user would weigh on that planet : The program, via the switch statement, then outputs how much the user would weigh on that planet.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a function sum3darray

Write a function sum3DArray. This function will take a three dimensional array of ints and add all the entries in the three dimensional array. Assume columns and rank are two constants already defined.

  Define a function named average grade

Define a function named average grade. This function returns a double and has four double arguments, testi, test2, test3, test4. The return value should be the average, or arithmetic mean of the four arguments.

  Write a program that reads a file

Write a program that reads a file consisting of students test scores in the range 0-200.

  Functional decomposition implementation of the algorithm

Functional decomposition implementation of the algorithm. Must define at least four different functions. Make sure to include functions that exemplify void vs. return-type,and value vs. reference parameters

  Write and test a signal handler for sigint

Write and test a signal handler for SIGINT that prints out the elapsed time since the program began. When popen finishes running the command.

  How many generations do you want to wait

How many generations do you want to wait? How many jackalopes do you have?

  How to modify this program

Directions are below the pasted code.

  Advantages of compilers and interpreters

Discuss the advantages and disadvantages of compilers and interpreters

  Select the total number of shippers for orders

Select the total number of Shippers for Orders (Hint: use COUNT(ShipVia) as TotalProducts to return non-null counts.

  Write statements to open both of the given files

The program will read data from the file inData.txt and write output to the file outData.txt. Write statements to open both of these files, associate inFile.

  Calculation the distance and time printed on the screen

After each calculation the distance and time printed on the screen and accumulated to the sum of the total distance and sum of the total time. The current destination should be saved as the old postion for the next calculation

  Write the complete description of all functions

Use the following class declarations. Write the complete description of all functions so that the program creates the following I/O

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