Exam

Task 1

In finnish football bet there is thirteen (13) games and bettor must quess will a hometeam win, the result is 1 if hometeam wins 1, X if even and 2 if awayteam wins. The odds for 1 are 50%, for X are 30% and for 2 20%.

Create a program that draws thirteen marks from 1,x,2 so The program bets one of following mark 1,x,2 thirteen time.

In a console present number of match and drawned mark.

Task 2

Create a console application where an user can give inputs as long he/she gives input quit. Read inputs are shown in a consolesperated with commas after a user has given quit.

Task 3

We have a Access based database named as Stars.mdb and there is a tabel named as Players.
Create a Windows application where the best players of  icehockey league "SM-Liiga" are showed in order of points (goals + assists). Show only data: Lastname, Firstname, Team, Country, Goals, Assists, Sum