ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 12 May 2017 My Price 9.00

Create a flowchart that will contain five modules

Description: Create a flowchart that will contain five modules, one to prompt the user to input the sales amount before discount andthe discount percent as a decimal, the second to calculate the amount of discount, the the third to calculate the purchase amount less the discount, the forth to calculate the sales tax on the net sale amount (sound familiar?), and the fifth to handle all of the output. See the output box below for what that should look like.
Declare your variables by type: num or string in a Declarations symbol. Show your input prompts and output labels in quotes.

  Every variable name you use in your flowchart will need to be declared at the beginning of the program logic in a processing symbol with the label "Declarations:".
Look through your logic when you are finished and see if you have used any variable name that has not been declared.
If a variable is used only in a module, you may declare it in the module in the same way you would in the main logic.
  Assumption #1The sales tax amount is a constant in the program and does not need to be input. Just use a literal 0.06 in your calculation, or, you may declare a variable that is a constant and then use the variable in the calculation.
  Assumption #2To make it simple, prompt the user for the discount percent as a decimal. Assume that the user has entered say .30 for 30%, and that it is in that form when you use it in your calculation.

 

1.3. Specific Problem Requirements Summary

  You do not have to do the pseudocode for this problem, just the flowchart.
  • Declare all of your variables in a "Declarations" symbol (processing symbol).
  • Use camel casing for variable names, and use descriptive variable names. This time I will take points off for variable names like "tax" or "total."
  • Name your module with camel casing and use that name to call the module. The header to the module will have exactly the same name (see the example on page 57). Use the predefined process symbol for the module call symbol.
    • Give your modules a meaningful names. Do not use something like "tax." Does that stand for: state tax, income tax, or some other tax?
  • Label all output according to the Output Format section below.
  • Create five modules:
    • (1) Prompt the user to input for the sales amount and the percentage amount of the discount.
    • (2) Calculate the amount of the discount.
    • (3) Calculate the purchase amount less the discount.
    • (4) Calculate the sales tax on the sales amount after discount.
    • (5) Handle all of the output of the results (see below).
  • Output:
    • The original sales amount
    • The discount percentage
    • The amount of the discount
    • The net sales amount after discount
    • The sales tax amount
    • The final sales price after discount and the sales tax have been applied.

 

 

Attachments:

Answers

(11)
Status NEW Posted 12 May 2017 04:05 AM My Price 9.00

-----------

Attachments

file 1494563988-Solutions file 2.docx preview (51 words )
H-----------ell-----------o S-----------ir/-----------Mad-----------am ----------- Th-----------ank----------- yo-----------u f-----------or -----------you-----------r i-----------nte-----------res-----------t a-----------nd -----------buy-----------ing----------- my----------- po-----------ste-----------d s-----------olu-----------tio-----------n. -----------Ple-----------ase----------- pi-----------ng -----------me -----------on -----------cha-----------t I----------- am----------- on-----------lin-----------e o-----------r i-----------nbo-----------x m-----------e a----------- me-----------ssa-----------ge -----------I w-----------ill----------- be----------- qu-----------ick-----------ly -----------onl-----------ine----------- an-----------d g-----------ive----------- yo-----------u e-----------xac-----------t f-----------ile----------- an-----------d t-----------he -----------sam-----------e f-----------ile----------- is----------- al-----------so -----------sen-----------t t-----------o y-----------our----------- em-----------ail----------- th-----------at -----------is -----------reg-----------ist-----------ere-----------d o-----------n -----------THI-----------S W-----------EBS-----------ITE-----------. ----------- Th-----------ank----------- yo-----------u -----------
Not Rated(0)