Produce the pseudocode logic for an algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM131114111

Customers get a discount on their restaurant bill. The discount is based on a customers age and a frequent diner card. A customer whose age is 55 or greater and who shows a diner card is eligible for 15% discount on the restaurant bill. A customer whose age is 55 or greater but without a diner card is eligible for a 5% discount on the restaurant bill. A customer with a diner club card is eligible for a 10% discount.

Produce the pseudocode logic for an algorithm that will compute the discount for each customer. The information is given as follows:

- The output will consist of a screen display showing the customer's discount received.

- The input will consist of the keyboard input containing the customer's age, diner club number, and restaurant bill amount.

- The processing will compute the discount received by each eligible customer. If the customer is not a senior or does not have a diner card, there should be no discount on the restaurant bill.

Reference no: EM131114111

Questions Cloud

What makes research different from anecdotal evidence : What makes scholarly research different from anecdotal evidence (personal experience) in explaining child and adolescent development?
What is the payback period : The firm uses payback period criteria of not accepting any project that takes more than 4 years to recover cost. The company anticipates a cash flow of $439386,$512178,$562255, $764997, $816500 and $825375 over 6 years what is the payback period?
Analyze the future of criminal justice policy : Describe your thesis regarding the future of criminal justice policy making. Analyze the future of criminal justice policy. Describe the limitations associated with criminal justice policy making
Explain the cause of any difference in katharines selves : How did Katharine's self-concept differ from her ideal self before her expe- rience with her support group? What does this imply about her mental health, according to Rogers' theory?
Produce the pseudocode logic for an algorithm : Produce the pseudocode logic for an algorithm that will compute the discount for each customer. The information is given as follows: The output will consist of a screen display showing the customer's discount received.
Describe the significant manner court rulings in juvenile : Describe the significant manner in which the court rulings in juvenile delinquency cases have altered the judicial system's treatment of juveniles as compared to the treatment of adults
Create program perform error-checking on the initial values : Create a program called Date.java to perform error-checking on the initial values, for instance: fields month, day, and year. Also, provide a method nextDay() to increment the day by one.
Explain advantages of promoting social tolerance : Using a child development theory of your choice, explain the advantages and disadvantages of promoting social tolerance among children under the age of 10.
Determining the company stock today : Schiiller Corp will pay a $2.94 per share dividend next year, The company pledges to increase its dividend by 4.5 percent per year, indefinitely, If you require a return of 12 percent on your investment, how much will you pay for the company's sto..

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Implement an open hash table

In this programming assignment you will implement an open hash table and compare the performance of four hash functions using various prime table sizes.

  Use a search tree to find the solution

Explain how will use a search tree to find the solution.

  How to access virtualised applications through unicore

How to access virtualised applications through UNICORE

  Recursive tree algorithms

Write a recursive function to determine if a binary tree is a binary search tree.

  Determine the mean salary as well as the number of salaries

Determine the mean salary as well as the number of salaries.

  Currency conversion development

Currency Conversion Development

  Cloud computing assignment

WSDL service that receives a request for a stock market quote and returns the quote

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Recursive implementation of euclids algorithm

Write a recursive implementation of Euclid's algorithm for finding the greatest common divisor (GCD) of two integers

  Data structures for a single algorithm

Data structures for a single algorithm

  Write the selection sort algorithm

Write the selection sort algorithm

  Design of sample and hold amplifiers for 100 msps by using n

The report is divided into four main parts. The introduction about sample, hold amplifier and design, bootstrap switch design followed by simulation results.

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