You are on page 1of 1

A) Six boys went fishing and caught fish.

Write a program that prompts for the


name of each boy and the number of fishes caught. The program should then
determine the name and number of fishes caught by the boy with the largest
number fish.

B) Use the test data provided to create a trace table for the above program.

Ben 16
Bob 34
Luke 86
Dan 65
Roy 40
Leslie 31

SOLUTION

Program Fishing;

You might also like