Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- make 3 boolean variables for questions
- make an int variable for score
- make an int variable for bonus score
- question 1 :
- (input your answer for question 1)
- question 2 :
- (input your answer for question 2)
- question 3 :
- (input your answer for question 3)
- if question 1 is true{
- (type score++) <-- increment
- }
- if question 2 is true{
- (type score++) <-- increment
- }
- if question 3 is true{
- (type score++) <-- increment
- }
- if score is equals to 3(or perfect score) {
- score is equals to score plus bonus points
- display ("You have a bonus points your final score is: score")
- }else {
- display ("Your score is: score");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement