The function return the value of the ticket price

Assignment Help Basic Computer Science
Reference no: EM13672349

Write a function called compute_discount_amount() that determines the total discount , in dollar, for a customer based on age and student /employment status. the function accept the ticket price (floating -point) and age (and integer) as input parameters and does the following to determine the discount.

a) prompts the user for the student status of customer. the user should enter "y" if they are currently a student ; "n" otherwise
b) prompt the user for employment status of customer. the user should type "y" if they are a WSU emlployee; "n" otherwise.

a customer may be student and an employee. a customer is consider a senior citizen if they are 65 year older. the following discount should be applied: 9% for employees, 10% for senior citizen, 11% for students, and 12% for student who are also employees. the function return the value of the ticket price time the discount percentage.

Reference no: EM13672349

Questions Cloud

The preliminary research process : An annotated bibliography begins the preliminary research process.
Paper on bethany hamilton : Need a 3-4 page paper on Bethany Hamilton
The status and treatment of women in shakespeare''s time : Discuss the female characters in "Twelfth Night." How does this play reveal the status and treatment of women in Shakespeare's time?
Examples of english words whose meanings have shifted : Give five examples of English words whose meanings have shifted
The function return the value of the ticket price : The function return the value of the ticket price time the discount percentage.
What is the radix x : Two numbers given in certain radix X are (55)X and (64)X. If we add this two numbers, the result is (130)X. What is the radix X?
The liability for malicious traffic traversing the internet : The liability for malicious traffic traversing the Internet
Place a cuckoo clock : Place a cuckoo clock
What does it mean to have integrated requirements models : What does it mean to have integrated requirements models?

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Identifies the cost of computer

identifies the cost of computer components to configure a computer system (including all peripheral devices where needed) for use in one of the following four situations:

  Input devices

Compare how the gestures data is generated and represented for interpretation in each of the following input devices. In your comparison, consider the data formats (radio waves, electrical signal, sound, etc.), device drivers, operating systems suppo..

  Cores on computer systems

Assignment : Cores on Computer Systems:  Differentiate between multiprocessor systems and many-core systems in terms of power efficiency, cost benefit analysis, instructions processing efficiency, and packaging form factors.

  Prepare an annual budget in an excel spreadsheet

Prepare working solutions in Excel that will manage the annual budget

  Write a research paper in relation to a software design

Research paper in relation to a Software Design related topic

  Describe the forest, domain, ou, and trust configuration

Describe the forest, domain, OU, and trust configuration for Bluesky. Include a chart or diagram of the current configuration. Currently Bluesky has a single domain and default OU structure.

  Construct a truth table for the boolean expression

Construct a truth table for the Boolean expressions ABC + A'B'C' ABC + AB'C' + A'B'C' A(BC' + B'C)

  Evaluate the cost of materials

Evaluate the cost of materials

  The marie simulator

Depending on how comfortable you are with using the MARIE simulator after reading

  What is the main advantage of using master pages

What is the main advantage of using master pages. Explain the purpose and advantage of using styles.

  Describe the three fundamental models of distributed systems

Explain the two approaches to packet delivery by the network layer in Distributed Systems. Describe the three fundamental models of Distributed Systems

  Distinguish between caching and buffering

Distinguish between caching and buffering The failure model defines the ways in which failure may occur in order to provide an understanding of the effects of failure. Give one type of failure with a brief description of the failure

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