From BU Computer Science
Jump to navigation Jump to search

Second Repetition Assignment

Choice 1

Write a program that takes a log of users of a website (it is just a file with a list of user ids) and outputs the number of times a specified user (from standard input) visited that site. The input from standard in should be the file name and the specified user.

Choice 2

Write a program that reads from a file and outputs the largest and smallest numbers in that file. You may assume that the file only contains numbers.