Question: Question: Using Flowgorithm.org, construct flowchart of exercise below Notes to help: A. The format above in blue will look similar to the photo attached below,
In the Spotlight Using Array Elements in a Math Expression Mcgan owns a small ncighborhood coffoc shop, and she has six employces who work as baristas (coffec bartenders). All of thc amployccs have the samc hourly pay ratc. Mcgan has asked you to design a program that will allow her to enter the number of hours worked by cach employce and then display the amounts of all the cmployccs gross pay. You detcninc that thc program should perform the following stcps 1. For cach cmployo: gct the number of hours workod and store it in an array clment. 2. For cach array ckment: usc the valuc storcd in thc clement to calculatc an pay. Display the amount of the gross pay Program 8-4 shows thc pscudocode for the program, and Figurc 8-4 shows a flowchart. cm ploye s pross Program 8-4 1 I/ Constant for the size of the array 2 Constant Integer SIXB 4 I Array to hold each enployee's hours 5 Declare Real hours[SIZE] 7 Variable to hold the bourly pay rate 8 Declare Real payRate 10 /Variable to hold a groas pay 11 Declare Real groasPay anount. 13 / Variable to use as a loop counter 14 Declare Integer index 16 ICet each onployoe's hours worked 17 For index = 0 To SIXR-1 18 Display Enter the hours worked by 19 Display "employeeIndex 1,. Input hours[ index ] 20 21 End For 23 I Get the hourly pay rate 24 D1splay "Enter the hourly pay rate. 25 Input payRate 26
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
