Question: Hey I need to take this pseudocode and make it a Visual Basic console application in Visual Studio. if it's not basic it won't run

 Hey I need to take this pseudocode and make it a

Hey I need to take this pseudocode and make it a Visual Basic console application in Visual Studio. if it's not basic it won't run

// main module Module main() // Local variables Declare InputFile salesFile Declare Integer count -0, readNumber, lastNumber Declare Real readAmount, personTotal- 0, allTotal - 0 // open file Open salesFile "brewster.dat" // print headings Display Brewster s Used Cars, Inc." Display sales Report" Display Display "Salesperson II Sale Amount " // read and display all sales in the file While NOT eof (salesEile) Read salesFile readNumber readAmount set court " count t 1 // initialize if count n 1 Then Set lastNumber " readNumber End if ?l //check if sales 1D changed If readNumber ! last Number then Display Total sales for this salesperson: .persontotal Display Set personTotal 0 Set lastNumber 4 readNumber End I1 // accumthate totals set personTotal persontotal t readAmount set aliTotal -alirotal +readAmount End While // closing totals Display "gotal sales for this salesperson: ,person Total Display rotal of all sales: w alitotal // close the file Close numbersFile End Module

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!