Introduction to Computers

Homework 13, Due 1/5 (Thursday)

1.  Write a program that simulates rolling two dice 100000 times.  Output the frequencies of the sum of the two faces from 2 to 12.

Reference: 13.c 

 

ftp your homework (c source file and one sample run result saved as a JPEG file) to

ftp://aca071@ftp.csie.nuk.edu.tw

in the directory upload\HW13

by the following format:

主旨:hw#_班級_學號_題號

檔案名稱:hw#_班級_學號_題號.c

例如:應化一同學,作業1

    檔案名稱:hw1_AC_a0925124_01.xxx (depending on the file type)

The password is given in class.