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

  Tsee economic espionage and the protection of trade secrets

economic espionage and the protection of trade secrets have become increasingly important as domestic and international

  Produce a report by salesman

Do a compile-time initialization of the salesperson's names and product list. Produce a report by salesman, showing the total sales per product.

  Design a modular pro-gram

There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. Design a modular pro-gram that asks how many tickets for each class of seats were sold, and then dis-p..

  Describe the inputs to multiplexers for each of the four bit

Describe the inputs to the multiplexers for each of the four bits. For example, what are the multiplexer inputs for the C (third) bit of the shift register?

  Analysis of competitive organization and possible threats

Analysis of competitive organization and possible threats and how organization is using E-Business Management facilities for daily activities? Limitations if any, adding more features for E-Business if required.

  Mips assembly program

MIPS Assembly Program: Help writing this function

  Write guide for the organization

Write a 2-3 page report recommending style manual and/or technical/legal writing guide for the organization to use and describe the reasons for your recommendations.

  Which of the following is not true about public inheritance

Which of the following is not true about public inheritance?

  Why your program should require o(logn) time per order

The double action system operates as follows. When a new buy order of $x arrives it is simply stored for future use if none of the stored sell orders has an asking price lower than or equal to $x.

  Discuss at last three advantages of a hard-wired lan

Discuss at last three advantages of a hard-wired LAN compared to a wireless LAN (WLAN) and visa-versa

  Mathematical equations using latex

To typeset documents that include titles, sections, lists, emphasis, verbatim environments, footnotes, tables of contents, and mathematical equations using LATEX

  The number of bits per track is constant

Design a rotating disk where the number of bits per track is constant

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