Ling
Posts: 13
Nickname: ling
Registered: Feb, 2003
|
|
pls help by giving some clues
|
Posted: Mar 9, 2003 3:59 AM
|
|
Hi, i am working on an assignment which is briefly described below. Can any kind souls just give me some clues on how to create the java program for it? I do not expect the full answers cos i hope to attempt it myself so giving clues to help me start out is greatly appreciated...thanx!
Simulation - A virtual student taking test. A virtual student takes a test that has 8 true/false questions, and the probabilities of his/her answering the questions right are: 41%, 36%, 65%, 33%, 67%, 53%, 38%, 61%, respectively. All questions should be answered. If any question is answered wrongly, 20 marks are deducted, until the final score reaches 0. Write a program to simulate the performance of such a virtual student. A sample run of the program looks like:
C:\>java program FTTTTTFF Score (out of 100): 40
C:\>java program TTTTTTFT Score (out of 100): 80
C:\>java program FFTFFTFF Score (out of 100): 0
|
|