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

  Similar to last lab this lab is comprised of a series of

similar to last lab this lab is comprised of a series of mini tasks. in order to get credit for this lab you must

  Proof the correctness of the algorithm

Take a look at the sudocode of FIND-MAXIMUM-SUBARRAY. Try to proof the correctness of the algorithm.

  Draw a flowchart of the function realizing insertion sort

Write the corresponding MATLAB code. You should check (just for yourself) how your function works with an arbitrary unsorted array.

  Determine how long the specific algorithms take

Some problems can be theoretically solved (we can explain the algorithm solving problem). How long does the specific algorithms take?

  Part 1 mining information from sales data is a common task

part 1 mining information from sales data is a common task in both traditional and online stores. past sales

  Data type passed by reference

Write a C program that tests whether or not the following data types are passed by reference or by value, and prints what it discovers out to the terminal

  Write down an algorithm draw a flow chart and write a java

question write an algorithm draw a flow chart and write a java program to accept quiz 10 midterm 30 project 15

  What is complexity of the gnome sort for the average case

What is the complexity of the gnome sort for the average case? Justify your answer. The justification can be based on approximate calculations.

  Build a binary search tree

Build a binary search tree using the following set of numbers, preserving the orderin which they are given: 34,26,47,22,28,10,24,38,51,49,37,4,45,60,57,14.

  Briefly describe what double hashing is

Briefly describe what double hashing is and describe what problem double hashing helps to resolve. Also, provide an example of a rule that can be used for a double hashing probe sequence

  Write a function to insert a node after the head

In a doubly-lined list, each node points to both the next and previous nodes. The info in the each node is an integer and two pointers, one to the previous node and one to the next node - Define the node

  Write an algorithm that includes the three control structure

This project provides you with the opportunity to examine algorithms, identify the inaccuracies in the algorithms, and finally, to modify the algorithms with the correct details. Your next step will be to write an algorithm that includes the three..

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