Reference no: EM131626649
Help with a flowchart that uses the procedural design
You will have a calculation. Where it calculates the net pay: net = gross * RATE. Notice that a calculation is done in a processing symbol.
Description: A flowchart that will prompt the user for the input of a total sale amount and then calculate the sales taxon that total sales amount. The program will then output the total sales amount and the sales tax amount with appropriate labels. Declare your variables by type: num or string in a Declarations symbol. Show your input prompts and output labels in quotes. You will have input, processing, and output symbols.
Every variable name you use will need to be declarared at the beginning of the program logic in a processing symbol. Look through your logic when you are finished and see if you have used any variable name that has not been declared.
When you declare a variable, you must also show what type it is. It will be one of two types: string or num. Meaning a test string or a number or num. You simply display a text (string) prompt telling the user what to enter. Prompting is the first step, but you still need an input symbol to Prompting is the first step, but you still need an input symbol to accept the input from the user. You also need a variable to hold what the user enters.
The sales tax amount is a constant in the program and does not need to be input. Just use a literal 0.06. Or, you may declare are variable that is a constant and then use the variable in the calculation.