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

  Distributed data processing

Explain how has the increasing availability of the inexpensive yet powerful personal computers and workstations generated an increasing trend towards distributed data processing (DDP).

  Atm and frame relay

ATM and Frame Relay

  How many bits are required to address a 1m eight main memory

How many bits are required to address a 1M 8 main memory if Main memory is byte-addressable and Main memory is word-addressable?

  Is it not the original owner error by not being more secure

If someone has not properly secured some important data, is it ethical for another person to exploit that situation and take the information? Is it not the original owner's error by not being more secure

  Minimum size of instruction

An imaginary computer has the 16 data registers (R0 to R3), 1024 words in memory, and the 16 different instructions (add, subtract, etc.). Explain the minimum size of the instruction in bits.

  What role do users have in the development phase

What advantages does commercial off-the-shelf software provide over custom software? What role do users have in the development phase and integration phase for information systems

  How would an ssa bus configuration recover

How would an SSA bus configuration recover from a single disk failure? Suppose another node fails before the first one can be fixed. How would the system recover?

  Write down an application that reads 3 integers

Write down an application that reads 3 integers

  Show the key code in the center of the screen

Write down a program that will display the hex code for any key, or key combination that is pressed on the keyboard. Display the key code in the center of the screen. For instance, if the key number 0 is pressed, display a 30 on the center of the ..

  The most important roles in systems development

How have the roles of systems analysts and end users changed in the past 20 years? What are the benefits and drawbacks to these changes.

  Z-basic microprocessor programming

Write a statement to make pin 15 a digital input and read the input logic level - Write a statement to make pin 15 an analog input and read the analog voltage level.

  Data planning and modelling– enterprise modelling

Write down the major differences between the two approaches to the data planning and modelling– enterprise modelling and the view integration?

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