Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

image text in transcribed

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

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

SQL Server T-SQL Recipes

Authors: David Dye, Jason Brimhall

4th Edition

1484200616, 9781484200612

More Books

Students also viewed these Databases questions