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

  Solving information technology question

XYZ Corporation has a small office with eighty users in California. The office employs a file and print server that caters to user requests.

  Creating a flowchart

Create a flowchart to illustrate the given problem. You are given input for the student name, number of credits, and cost per credit.

  Implement the array-based stack class

Implement the array-based stack class - Use it in the client code to convert an infix expression into post-fix expression, and compute the result.

  Give algorithm to find schedule to obtain maximum profit

Give an algorithm to find the schedule that obtains the maximum amount of profit, assuming that all processing times are integers between 1 and n.

  Write pseudocode for a procedure random-search

Write pseudocode for a procedure RANDOM-SEARCH to implement the strategy above. Suppose that there is exactly one index i such that A[i] = x. What is the expected number of indices into A that we must pick before we find x and RANDOM-SEARCH termina..

  Create greedy algorithm to find market to buy apples

Assume we drive pickup truck from city A to city B. Along high way, we will go through n apple markets, labeled with 1, 2, ..., n, where you can buy or sell apples. which means you buy and sell apples at the same market i.

  Implement a method to delete every node

Call the structure for the nodes of the tree WordNode, and call the references in this structure left and right. Use Strings to store words in the tree. Call the class implementing the binary search tree WordTree.

  Algorithm for locating nth successor in circlar linked list

Write algorithm or code segment for locating nth successor of an item in circlar linked list (the nth item that follows the given item in the list).

  Show a schematic diagram of a priority queue

55-4793 Algorithms and Data Structures Assignment. Show a schematic diagram of a priority queue for the following "job elements". Note that the jobs are not in a particular order in this example. In your schematic diagram, clearly show the beginnin..

  Write algorithm-compute total and weighted average of test

Write down the algorithm for the program which prompts the user to enter five test scores, compute the total of the five tests and determine the weighted average of each test.

  What are the properties of an algorithm

What is a first-in-first-out data structure ? Write algorithms to perform the following operations on it - create, insertion, deletion, for testing overflow and empty conditions.

  An embedded system is a computer system performing

an embedded system is a computer system performing dedicated functions within a larger mechanical or electrical system.

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