Write a program that will consist of two functions

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

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 question6b.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: EM132084508

Questions Cloud

Were the justifications just convenient excuses : Were the justifications just convenient excuses for their exploitation or does the strong have a right to dominate the weaker peoples and states?
How much cash was provided by operating activities : A company had net income of $210,000. Depreciation expense is $26,000. How much cash was provided by operating activities
How does hardware support time management in the os : How does hardware support the dual mode process (i.e., controlling between user mode and kernel mode)?
Fall of the mongal empire : What clues did the marco polo documentary give about difficulties of using the silk road after the fall of the mongal empire?
Write a program that will consist of two functions : NuMetro has a special on movies for all members of the public but special discounts for students and pensioners.
How did their proposals reflect their overall philosophies : What was different about their proposals and how did their proposals reflect their overall philosophies?
Can you think of has-a relationships that are optional : All of you Object-Oriented Design folks have heard of "Has-a" (a car has tires) and "Is-a" (a car is a Buick).
Develop the menus or meal plan : SITHKOP004 - Develop menus for special dietary requirements - List the dietary requirements of each of the customer groups above and the consequences
What are some supporting points : What are some supporting points/evidence you could make for whether the Renaissance was a break from the past or it having continuities

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Program that generates 50,000 random integers from 1 to 6

Program that generates 50,000 random integers from 1 to 6 (inclusive). Count the number of times that each number occurs and output the totals

  Write a script that creates a craps game

Write a script that creates a craps game and meets the following requirements. Name the script craps.sh The script will get 2 random numbers between 1-6.

  What is realistic rendering in computer graphic

Differentiate between pillar boxing and the letter boxing. What is realistic rendering in computer graphic. Discuss the approach used in realistic rendering.

  Discuss about the overview of exceptions and debugging

Prepare an 8- to 10-slide presentation with speaker notes or an audio recording/podcast containing the following content:Highlights of C# syntax,Overview of mathematical operators and a coding fragment sample,Overview of loops and a coding fragment s..

  What is the importance of putting functions in a program

How does structure play a role in the code that is being modifying? How will it play a role for another developer who might later modify your work?

  Determine whether a given year is a leap year

Modulus. Determine whether a given year is a leap year, using the following formula: a leap year is one that is divisible by four, but not by one hundred.

  Amount of the order for computer

Decision Tree Using the SOS, EraTech sends out invoices monthly and will gi,e discounts if payments are made within 10 days, The discount policy is as follows:

  Program that asks user to enter the size of the matrix

Write a program that asks user to enter the size of the matrix (rows and column) then, it asks the user to enter the elements of two matrices and finally it adds two matrix and displays the result in C language.

  Create a piggy bank

Prepare a piggy bank using Visual C++. The code requires to be separated into a header file and a driver.cpp using implementation.

  What is encapsulation?

What is encapsulation? Why encapsulate in object oriented development?

  How many times will the inner loops s be executed

How many times will the inner loop's S be executed? Show HOW you got that answer.

  Create a front­end system for a vending machine

Create a front­end system for a vending machine written in C. The vending machine serves all kinds of pastry treats. The company's name is Penelope's Pastry Delights and as such, the executable you are creating will be called "ppd"

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