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

  Identify position-indicate what pattern is found in thread

Thread the sequence AATCGATAAGCAAAACCGGATTACGATATATAT through the tree. If any pattern is found in any position, identify that position and indicate what pattern is found.

  What information to save-process moves from running to idle

When a process moves from running to idle, the state of the machine has to be saved. Obviously this cannot mean the whole state, as there would be no place to save it. Just what information has to be saved?

  What are some of the more popular database management system

What are some of the more popular database management systems? Why use Oracle?

  Achieving greater maturity that addresses funding priorities

Explains a set of recommendations for achieving greater maturity that addresses funding priorities. Explain a set of recommendations for achieving greater maturity that addresses key management capabilities.

  Which vulnerability be evaluated for extra controls first

If organization has three information assets to evaluate for risk management as shown in accompanying data, which vulnerability must be evaluated for additional controls first? Which one must be evaluated last?

  What interface does an application need to use

What interface does an application need to use if it wants to get updates on the current position of the mouse cursor as the mouse is being moved? How does the program get the x,y coordinates of the mouse cursor?

  How to make components of system user-friendly

How do components of your computer system interact within system? What improvements or additions to your system do you think would benefit you or make system more user-friendly? Why?

  Create a jframe that uses borderlayout

Create a JFrame that uses BorderLayout. Place a JButton in the center region. Each time the user clicks the JButton, change the background color in one of the other regions. Save the file as JColorFrame.java.

  Calculate the net profit for all the products

Given the list of all the product prices and wholesale prices as well as a list of all the items sold for each product calculate the net profit for all the products.

  The area of a circle is pi multiplied by the square

The area of a circle is pi multiplied by the square of the radius

  Find newton interpolating polynomial for the function

Find Newton%u2019s interpolating polynomial for the function ;

  Create an application that allow a new customer order house

Create an application that will allow a new customer to order a house. You'll allow the customer to choose among four models (Aspen, Britattany, Colonial, and Dartmoor) by creating separate ButtonGroups.

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