View the step-by-step solution to:

Question

I need help turning this into a COBOL , Can you please help me. Please Please


Golf

Scores Pseudo code Program

counter = 0//counter to keep track of how many processed

//initialize our player attribute data

player Name = ""

player Score = 0

//will hold the number of records we have

count = 0

while(1){//loop until the is entered

print(Please Enter a Player Name)

player Name = user Input

if (player Name == ""){//if name is the one to exit we break

break;

}

print(Please enter a score!)

player Score = user Input

//write the two values to file here

//then increment counter

count++

}

print("The number of item read in is: " + count)

 

2. r f = open File(file Name)

sum = 0

count = 0

while(read() != end of file){

sum += golf score of current line

count++

}

print("We have " + count + " arguments!")

print("We have an average golf score of "

 

Recently Asked Questions

Why Join Course Hero?

Course Hero has all the homework and study help you need to succeed! We’ve got course-specific notes, study guides, and practice tests along with expert tutors.

  • -

    Study Documents

    Find the best study resources around, tagged to your specific courses. Share your own to gain free Course Hero access.

    Browse Documents
  • -

    Question & Answers

    Get one-on-one homework help from our expert tutors—available online 24/7. Ask your own questions or browse existing Q&A threads. Satisfaction guaranteed!

    Ask a Question
Let our 24/7 Computer Science tutors help you get unstuck! Ask your first question.
A+ icon
Ask Expert Tutors You can ask You can ask ( soon) You can ask (will expire )
Answers in as fast as 15 minutes
A+ icon
Ask Expert Tutors