Modify the pseudocode design

Assignment Help Data Structure & Algorithms
Reference no: EM13673953

Modify the pseudocode design that you created last week  to include statements to prompt the user to enter the movie titles one movie at a time.  After the customer has finished entering the movie titles, the system will calculate and print the bill.   Hint: use a loop to process the total bill.

Add the statement(s) for the following:   If customer rents 3 movies, they receive 1 of the three movies for free. 

PseudocodeSolution from last week:

Calculate_customer_bill

1     Prompt for email, movie 1, movie 2, movie 3

2     Get email, movie 1, movie 2, movie 3

3     Set movie_number to true

4     IF movie_number> 3 THEN

             Set movie_number to false

             Display 'invalid movie number', movie

         ENDIF

5       IF movie rating = R THEN

              Validate customer_age> 17

         ELSEIF

Customer_age< 18 THEN

                   Set customer_age to invalid

                   Display 'invalid customer age', customer

         ENDIF

6       Customer_bill=  (movie_number * $1.50) + (remainder * 5%)

7       IF customer_bill = valid THEN

               Display 'Customer's bill is', customer_bill, email

          ENDIF

   END

 

 

 

 

Reference no: EM13673953

Questions Cloud

Describe the mechanisms of blood pressure regulation : Briefly describe the mechanisms of blood pressure regulation and describe the difference between centrally and peripherally acting sympatholytics.
Why is the cardiac action potential propagated : What major movements of ions account for each phase of the action potential of a typical myocardial cell and why is the cardiac action potential propagated more slowly in an AV node cell then in an atrial or ventricular myocyte?
Prepare a memorandum summarizing your findings : Clearly establish whether the ATMOS can justifiably be called a perpetual motion machine, closely approximates one, or only appears to be one. Prepare a memorandum summarizing your findings - evaluate the inventor's claims.
Evaluate our opinion of the educational degree program : If Strongly Agree represents the most positive attitude, how would you value - Evaluate our opinion of the educational degree program in which you are enrolled
Modify the pseudocode design : Modify the pseudocode design
The executive summary is a brief synopsis of the paper : Completed only after the rest of the paper has been completed, the Executive Summary is a brief synopsis of the paper with a solid conclusion. Describe the central problem that will be addressed and why it was chosen. Explain the objectives and wh..
Tough face a manufacturer of rock climbing gear : Tough face a manufacturer of rock climbing gear
Display all the columns from the orders table : Display all the columns from the Orders table that were paid with a Visa Card and have been shipped to the customer (hint: not a null). Order results by the Item Price in descending order.
Balancing binary search trees : Balancing Binary Search Trees,  Consider the file BST.java (a link to this file is provided below for downloading purposes) which defines a generic Binary Search Tree class.

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