Ask Question, Ask an Expert

+61-413 786 465

info@mywordsolution.com

Ask Computer Engineering Expert

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.

Computer Engineering, Engineering

  • Category:- Computer Engineering
  • Reference No.:- M91966372

Have any Question?


Related Questions in Computer Engineering

Social networking sites such as myspace and facebook pose

Social networking sites such as MySpace and Facebook pose interesting new questions for privacy protection. Describe how privacy may be threatened by the use of these sites. Are these problems significant? How should pri ...

A single card is randomly drawn from one standard 52-card

A single card is randomly drawn from one standard 52-card deck of playing cards, and events C and D are as follows: C=the card drawn is a king; D-the card drawn is a heart. Find the probability of event C or event D occu ...

An important decision places christmas holiday celebrators

An important decision places Christmas holiday celebrators: To buy real or artificial trees? A market research firm reported that 62% of individuals polled preferred an artificial tree. We conduct independent serving of ...

What does an income statement a balance sheet and a cash

What does an Income Statement, a Balance Sheet and a Cash Flow System intend to show about a company and how would you use the data contained within in making a credit determination?

Nfs allows the file system on one linux computer to be

NFS allows the file system on one Linux computer to be accessed over a network connection by another Linux system. Discuss the security vulnerabilities of NFS in networked Linux systems, and possible mitigation solutions ...

Identify and evaluate at least three considerations that

Identify and evaluate at least three considerations that one must plan for when designing a database. Suggest at least two types of databases that would be useful for small businesses, two types for regional level organi ...

Question suppose you are buying stamps to put on a package

Question : Suppose you are buying stamps to put on a package at the post office. The postage required to send the package is N dollars. You can buy $1, $7, and $10 stamps. You want to find the minimum number of stamps re ...

Question please review the description of the organization

Question: Please review the description of the organization that is the subject of your semester project. The description of that organization, CITY GENERAL HOSPITAL, is described in the instructions for Phase I that you ...

Describe an ethical conundrum found in a magazine or

Describe an ethical conundrum found in a magazine or newspaper article, and please give your own thoughts. Give good citations, of course.

Suppose a coworker approaches you and asks what an ethical

Suppose a coworker approaches you and asks what an ethical hacker does. She does not understand the role that an ethical hacker plays in the security industry and assumes that such a hacker intentionally causes damage. E ...

  • 4,153,160 Questions Asked
  • 13,132 Experts
  • 2,558,936 Questions Answered

Ask Experts for help!!

Looking for Assignment Help?

Start excelling in your Courses, Get help with Assignment

Write us your full requirement for evaluation and you will receive response within 20 minutes turnaround time.

Ask Now Help with Problems, Get a Best Answer

Why might a bank avoid the use of interest rate swaps even

Why might a bank avoid the use of interest rate swaps, even when the institution is exposed to significant interest rate

Describe the difference between zero coupon bonds and

Describe the difference between zero coupon bonds and coupon bonds. Under what conditions will a coupon bond sell at a p

Compute the present value of an annuity of 880 per year

Compute the present value of an annuity of $ 880 per year for 16 years, given a discount rate of 6 percent per annum. As

Compute the present value of an 1150 payment made in ten

Compute the present value of an $1,150 payment made in ten years when the discount rate is 12 percent. (Do not round int

Compute the present value of an annuity of 699 per year

Compute the present value of an annuity of $ 699 per year for 19 years, given a discount rate of 6 percent per annum. As