Write psuedocode to represent a suitable algorithm

Assignment Help Data Structure & Algorithms
Reference no: EM131210368

A newly opened grocery store wants to set up their computerized system to be able to handle the checkout of items. They are on the hunt for a programming company that can assist in designing such a program. Luckily, the students of the Community College programming class have volunteered.

The program should you display a Welcome message followed by the following menu-

1. 5 Items or Less

2. Express Lane

3. Exit

The user in then prompted to enter a choice corresponding to the above menu.

If the choice is 1 then the user is prompted again for the number of items to be processed.

Depending on the amount of items to be processed by the user must be prompted for the price of all the items. The sum of the items is then displayed followed by a Goodbye message then the program ends.

NB: The amount of item should be 5 or less.

If the choice is 2 then they are then prompted for the price of the item.

If the price of the item is greater than $50 then a 25% discount is given to the product. If not the price remains the same. The final price is then displayed and a Goodbye message then the program ends.

NB: Express lane is for 1 item.

If the choice is 3 then a Goodbye message is displayed and the program ends.

1. Write Psuedocode to represent a suitable algorithm to solve the grocery's store problem.

2. Design a Flowchart which will show the flow of data for this algorithm.

3. Write C Code for this program

a) Code should be commented and indented where necessary.

Reference no: EM131210368

Questions Cloud

Would the hypothesis be directional or non-directional : Would you recommend using a z-test, a t-test, or an ANOVA for the analysis? Explain your answer. What would your choice of test depend on? For the test you select, explain your design and your comparison groups. Would the hypothesis be directional ..
Discuss the pros and cons of letting people rotate : Discuss the pros and cons of letting people rotate between projects from different application domains as opposed to letting them become true experts in one particular application domain.
What are the benefits of holding real money balances : What are the benefits of holding real money balances? What are the costs? - What is the optimum amount of real money balances that house holds and firms will demand?
Explain outcome of effort and the factors that influenced : Describe the components of this effort and the motivations behind them. Explain the outcome of the effort and the factors that influenced those outcomes.
Write psuedocode to represent a suitable algorithm : If the choice is 3 then a Goodbye message is displayed and the program ends. Write Psuedocode to represent a suitable algorithm to solve the grocery's store problem. Design a Flowchart which will show the flow of data for this algorithm
Graph the supply and demand curves for real money balances : Graph the supply and demand curves for real money balances. Explain what happens to the interest rate in each of the given situations:
Describe your experience with learning teams : Cohesiveness assesses the group's ability to work together in a productive manner toward a common goal. When there is little or no cohesiveness the group and organization is ultimately impacted negatively. Describe your experience with learning te..
Evaluates all operands before applying boolean operators : Show how the if then else construct can be used to simulate short-circuit evaluation of boolean expressions in a language which evaluates all operands before applying boolean operators.
Cost of health care-giving evidence : Explain why the cost of health care appears to be increasing. What, in your opinion, would be the best way to control the cost of health care, giving evidence to back up your opinion?

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