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

  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