Difference between revisions of "CSC105SU2021Repetition2"
Jump to navigation
Jump to search
(Created page with "==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 tim...") |
m (→Choice 1=) |
||
Line 1: | Line 1: | ||
==Second Repetition Assignment== | ==Second Repetition Assignment== | ||
− | ==Choice 1=== | + | ===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. | 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. | ||
Latest revision as of 18:53, 6 July 2021
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.