From BU Computer Science
Revision as of 18:53, 6 July 2021 by Cathy.bareiss (talk | contribs) (Choice 1=)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
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.