Design an algorithm determining the total meal charges

Assignment Help Computer Engineering
Reference no: EM131290596

Exercises & iLabs Logic and Design

Exercise

Given a simple business problem, design a solution algorithm that uses arithmetic expressions and built-in functions.

Assignment:

Your goal is to solve the following simple programming exercise. You have been contracted by a local restaurant to design an algorithm determining the total meal charges. The algorithm should ask the user for the total food purchase and the tip percent. Then, the algorithm will calculate the amount of a tip, a 7% sales tax, and the total meal charge (including tip). The food purchase, sales tax, tip amount, and total meal charge will need to be displayed to the customer.

Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing. Display all output using currency formatting (built-in Visual Logic function).

Lab Total Meal Purchases (Devry)

Scenario/Summary

Your goal is to solve the following simple programming exercise. You have been contracted by a local antique store to design an algorithm determining the total purchases and sales tax. According to the store owner, the user will need to see the subtotal, the sales tax amount, and the total purchase amount. A customer is purchasing four items from the antique store. Design an algorithm where the user will enter the price of each of the four items. The algorithm will determine the subtotal, the sales tax, and the total purchase amount. Assume the sales tax is 7%.

Be sure to THINK about the logic and design first (IPO chart and pseudocode), then code the Visual Logic command line processing. Display all output using currency formatting (built-in Visual Logic function).

Advanced (optional): Use a constant for the 7% sales tax.

Deliverables Total Purchases IPO Model Total Purchases Pseudocode Total Purchases Flowchart Total Purchases Output Sample.

Reference no: EM131290596

Questions Cloud

Satellite radios purchases electronic components : Reelrad Co. manufacturer of satellite radios purchases electronic components as modules. The reliabilities of components differ by supplier (see diagram, below). Suppose that the configuration of the components is given by:
The politics and poetics of racial identity : How does the text tackle issues such as racial and ethnic identity; racism, prejudice and discrimination; social inequalities; and intergroup relations and does the text deal with intersectionality, where race or ethnicity Is also linked to class,..
Write a project status memo which reports on current status : Write a Project Status Memo which reports on the current status of your major course project.- Identify one or more possible sources for primary research.
How are treasury bills sold : How are Treasury bills sold? How do competitive and noncompetitive bids differ? Why is it so important for an economy to have fully developed financial markets? What is the free-rider problem? Describe some situations that this problem creates.
Design an algorithm determining the total meal charges : You have been contracted by a local restaurant to design an algorithm determining the total meal charges. The algorithm should ask the user for the total food purchase and the tip percent.
Distinguish between the front office and the back office : Explain why it is important to keep the front and back offices separate ? Explain why the traditional auditing function cannot serve as the risk management function ? Why is hedge accounting used and how can it be misused?
Design an application that it will prompt a user : You will need to design an application that it will prompt a user for their hourly pay rate, their hours worked, and whether they are single, married, divorced, or widowed.
Well-defined codes of ethics : A number of professional public relations groups have very well-defined codes of ethics. What are these codes seeking to accomplish? What are some of the common characteristics of them?
What is meant by independent risk monitoring : Explain the advantages for senior management having detailed, written policies for financial risk management? Define and explain what is meant by independent risk monitoring. How can senior management improve independent risk monitoring?

Reviews

Write a Review

Computer Engineering Questions & Answers

  Implementing the stack using dynamically allocated array

Write down the C++ class which implements the stack utilizing the dynamically allocated array. The initial size of the particular stack must be evaluated when it is generated.

  What are the reasons of project failure

Make sure to contain how and why project was initiated, what setting up was done, how plan went wrong and what was done to solve the trouble. What are the reasons of project failure

  Give a variable whose value is a letter grade

suppose that grade is a variable whose value is a letter grade-- any one of the following letters: 'A', 'B', 'C', 'D', 'E', 'F', 'W', 'I'. Assume further that there are the following int variables, declared and already initialized: acount, bcount,..

  Provide 1 illustration of a module name that is acceptable

provide 1 example of a module name that is acceptable to the compiler but not recommended according to the features of

  Developing the class square

Write down the class definition of the subclass of Square known as Fancy Square which has a method known as getDiagonal.

  What ordering results in an optimal tree

Inserting the values in different orders results in different shapes of trees. What ordering results in an optimal (complete) tree? Show the resulting tree.

  What do you mean by "file type"

What is "File Type" and what are some of the important information to know about it.

  Description provided with 6 papers we have to critically

description provided with 6 papers we have to critically analyse those papers and make a document with usual report

  Explain the modified scorecard approach

express the Value Based Management approach of demonstrating business value. Explain the Modified scorecard approach to measuring IT value. What is the benefit of this approach? Describe the concept of  balanced score card.

  Write marie program using a loop that multiplies two numbers

Write a MARIE program using a loop that multiplies two positive numbers by using repeated addition. For example, to multiple 3 6, the program would add 3 six times, or 3 + 3 + 3 + 3 + 3 + 3.

  The evolution of a health care information system

Discussion of an evolution of a health care information system, such as order entry results reporting, electronic health record, office-based medical records, or others. Include the following.

  Define the importance of that commandment

Modern relational database management systems have been around for a relatively short period of time. As time goes by, more and more emphasis has been placed on design issues, especially database modeling. What is the reason for this increased emp..

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