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:
public String processAnswerString(String testAnswerString){ String scoreString = ""; int score = 100; //** your code goes here *// // initialize score // process each character of testAnswerString // with correctAnswerString in a for loop // update score with each pass // update scoreString at the end return scoreString; } }