Create list of major steps to follow to get input

Assignment Help Data Structure & Algorithms
Reference no: EM1367298

The objective of each assignment is to give you a chance to apply the design concepts and techniques learned in the chapters covered. It is important that you understand each step as you layout the assignment. It is not a question of "imitating" the examples in the text or copying them, but understanding the examples and using that understanding to complete the assignment. You should continuously ask yourself, "Why am I doing this?" The answer should not be, just because the example does it.

Sales Tax Program

Design a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county tax. Assume the state sales tax is 4 percent (.04) and the county tax is 2 percent (.02). The program should display the amount of the purchase, the state sales tax, the county sales tax, the total sales tax, and the total of the sale (which is the sum of the amount of the purchase plus the total sales tax).

The objective of the assignment is to develop the program using modular design covered in Chapter 3 in addition to using the design techniques covered in Chapter 2.

Before starting Assignment 2, make sure you have studied and understand software requirements. You may want to do a "dry run" on paper using your own purchase amount. This will make sure that you understand the requirements.

Show the use of modules in pseudocode, as a basis for you assignment. However, use appropriate module names. Do not use step(1), step(2) etc. used in the example. Make sure you understand the other examples "In the Spotlight" on pages 95-97, 100-103, and 105-108 which demonstrate the use of passing arguments/data between modules.

1) Develop a list of major steps to follow to get input, process, and output the desired information
(software requirements).
2) Refine the list to include individual refined steps (algorithm).
3) Develop a structure (hierarchy) chart with a main module, submodules, the parameter variables, and
reference in the reference variables in the parentheses as needed.
4) Write the pseudocode for each module of the structure chart.
5) Create the corresponding flowcharts.
6) Set up the hand trace chart to test the logic of your pseudocode.

The structure chart and flowcharts can be developed using Microsoft Word. There is an organization chart feature for the structure chart and a draw and flowchart feature also. Use the Microsoft Help to learn how to access and use these features.

Reference no: EM1367298

Questions Cloud

Potential health problems through case-studies : The diagnosing, care and treatment of human responses to actual and/or potential health problems through case-studies, research studies and findings.
Create program that asks user to enter series of numbers : Create a program which asks the user to enter a series of 20 numbers. The program must determine whether number is valid by comparing it to following list of valid charge account numbers:
Determine the dollar price of the cars : The United State imports Japanese cars with a domestic price of 5,000,000 yen and the yen or dollar exchange rate is 120 on January 1, 2003.
Activity based teaching strategies : Describe how you could incorporate some activity based teaching strategies into a traditional classroom or clinical setting.
Create list of major steps to follow to get input : Create a list of major steps to follow to get input, process, and output desired information (software requirements). Refine the list to include individual refined steps (algorithm).
Preferred stock valuation : Authorized and available shares Aspin Company charter authorizes issuance of 2,000,000 shares of common stock. Currently, 1,400,000 shares are outstanding and 100,000 shares are being held as treasury stock.
Determine the factors that affect dollar yen exchange rate : n the flexible exchange rate system, discuss the effects of the following events on the exchange rate between U.S. dollar and Japanese Yen: Please indicate whether US$ will appreciate or depreciate.
By what percentage must the tension in the string be changed : A hot (70°C) lump of metal has a mass of 250g and a specific heat of 0.25 cal/g°C. John drops the metal into a 500 g calorimeter containing 75g of water at 20°C.
Concept to analyze nursing profession : Give a brief example of a concept to analyze in our nursing profession (example: caring, healing, comfort, diversity). Briefly outline the steps in the analysis of this concept.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Discuss new security features in windows server

Which of the system changeover methods is the most expensive? Why? Which of the system changeover methods is the most risky? Why?

  Compare the average behavior of insertion sort

Compare the average behavior of insertion sort for n elements with that of the n insertions into an initially-empty straight array implementation of a priority queue

  Write an algorithm to count nodes in a linked list

storage pool and that there is a special null value. Write an algorithm to count the nodes in a linked list with first node pointed to by first."

  Design a gui and implement tic tac toe game in java

Design a GUI and implement Tic Tac Toe game in java

  Draw flowchart to print average for each student

Draw a flowchart to print the average for each student in a class. Input. Input consists of student records each containing a student's name(STUDENT-NAME), score for first test(TEST), score for second test(TEST2), and score for third test(TEST3)..

  Algorithm to find maximum sum of contiguous sublist

Using dynamic programming, write an algorithm to find the maximum sum of contiguous sublist of a given list of n real values.

  What do you meant by an rfp

Select a specific category of vertical applications to investigate. Use the Internet and any other sources of information you might have to study some of the different products that are available in that category.

  Advantage of fast running time of insertion sort

Running time of quicksort can be enhanced in practice by taking advantage of fast running time of insertion sort when its input is "nearly" sorted.

  Algorithm to produce schedule for least completion time

What is the best order for sending people out, if one wants whole competition to be over as early as possible? More precisely, provide efficient algorithm which produces schedule whose completion time is as small as possible.

  Determine mean process turnaround time

Their priorities are 2, 3, 1, 5 and 4, respectively, with 1 being the highest priority. Specify the order in which processes execute and determine the mean process turnaround time for each of the scheduling algorithms.

  Write algorithm segment for locating nth successor of item

Write an algorithm or code segment for locating the nth successor of an item in a circlar linked list (the nth item that follows the given item in the list).

  Design algorithm determining annual profit for company

Your goal is to solve the following simple programming exercise. You have been asked by your accounting department to design an algorithm determining the annual profit for your company.

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