Ask Question, Ask an Expert


Ask Computer Engineering Expert

Part I: You have been asked to prepare a computer program that will figure out the total of an order when given the amount of the order ($1000) and a sales tax rate of eight percent.  I want you to prepare the op codes and operands necessary to make this program run (Programming Assignment 2 has a list of all the op codes. Then prepare the visual basic script necessary for this program to run. Op codes are at the bottom of the last page.

Part II: For each of the following you will need to provide: a notepad file with the Problem Statement (Assumptions, Input, Calculations, Output), human algorithm,  a Flow chart .emf file using Visual Logic, and a JavaScript file using html kit (.htm file).

You have been tasked with writing a program for a hardware store. They sell home improvement supplies to employees, contractors and the general public. They have three different types of discounts. Employees get a 10% discount, orders over $800 get a 5% discount, and contractors get a 20% discount. A customer can get only one discount but they may be both an employee and a contractor (or neither)  so you want to be sure to give them the largest discount they have earned. The program will take in the total of the order, apply any discounts, apply 8% sales tax and come up with the final amount of the order. Customers over 90 years old do not have to pay sales tax. They want to see the amount of the original order, the amount of any discounts, the subtotal, the amount of tax (zero for old people) and the final amount of the bill.  Make sure you not only get the correct answer but your code is efficiently written. Don’t ask unnecessary problems and pay attention to how you nest your if statements.

TEST DATA that you can use to test your flowchart/code: (the age of the customer is in parentheses ():

1686_test data.jpg

Computer Engineering, Engineering

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

Have any Question? 

Related Questions in Computer Engineering

1 a signal has passed through three cascaded amplifiers

1. A signal has passed through three cascaded amplifiers, each with a 4 dB gain. What is the total gain? How much is the signal amplified? 2. If the bandwidth of the channel is 5 Kbps, how long does it take to send a fra ...

Assignment applications of graph theoryin 1736 a famous

Assignment: Applications of Graph Theory In 1736, a famous Swiss mathematician Leonhard Euler (1707 - 1783) started the work in the area of Graph Theory through his successful attempt in solving the problem of "Seven Bri ...

1 which message in version 6 replaces the arp request

1. Which message in version 6 replaces the ARP request message in version 4? Which replaces the ARP reply message? 2. Which messages in version 6 replace the IGMPv6 messages in version 4? 3. In which transition strategy ...

The problem of the dutch national flag involves starting

The problem of the Dutch national flag involves starting out with a row of n buckets, i.e. bucket [1..n], each bucket containing a single pebble that is either red, white or blue. The task is to arrange the pebbles so th ...

What are the source and destination port numbers when an

What are the source and destination port numbers when an SNMP message carries one of the following PDUs? a. GetRequest b. Response c. Trap d. Report

Let p be a plaintext and let tpbe the length of p in bytes

Let P be a plaintext and let t(P)be the length of P in bytes. lot b be the block size of the block cipher in bytes. Explain why the following is not a good padding scheme: Determine the minimum number of padding bytes ne ...

1 show the encoding for the integer 1456 using ber2 show

1. Show the encoding for the INTEGER 1456 using BER. 2. Show the encoding for the OCTET STRING "Hello world." using BER. 3. Show the encoding for the IPAddress using BER. 4. Show the encoding for the object ...

1 list four wan technologies2 what technologies are found

1. List four WAN technologies. 2. What technologies are found in MANs? Which of the technologies listed in 8 and 9 can be used in MANs? 3. X.25 and TCP/IP are very similar but there are differences. Discuss these differe ...

Assume that we have an isolated as running rip we can say

Assume that we have an isolated AS running RIP. We can say that we have at least two different kinds of datagram traffic in this AS. The first kind carries the messages exchanged between hosts; the second carries message ...

1 briefly describe management operational and technical

1. Briefly describe management, operational, and technical controls, and explain when each would be applied as part of a security framework. 2. What are the differences between a policy, a standard, and a practice? What ...

  • 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

WalMart Identification of theory and critical discussion

Drawing on the prescribed text and/or relevant academic literature, produce a paper which discusses the nature of group

Section onea in an atwood machine suppose two objects of

SECTION ONE (a) In an Atwood Machine, suppose two objects of unequal mass are hung vertically over a frictionless

Part 1you work in hr for a company that operates a factory

Part 1: You work in HR for a company that operates a factory manufacturing fiberglass. There are several hundred empl

Details on advanced accounting paperthis paper is intended

DETAILS ON ADVANCED ACCOUNTING PAPER This paper is intended for students to apply the theoretical knowledge around ac

Create a provider database and related reports and queries

Create a provider database and related reports and queries to capture contact information for potential PC component pro