Advertisement
xxmakarovxx

Prog 1 3/31/2023 activity

Mar 30th, 2023
767
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.66 KB | None | 0 0
  1. make 3 boolean variables for questions
  2. make an int variable for score
  3. make an int variable for bonus score
  4.  
  5. question 1 :
  6. (input your answer for question 1)
  7.  
  8. question 2 :
  9. (input your answer for question 2)
  10.  
  11. question 3 :
  12. (input your answer for question 3)
  13.  
  14.  
  15. if question 1 is true{
  16.  
  17.  (type score++) <-- increment
  18.  
  19. }
  20.  
  21. if question 2 is true{
  22.  
  23.  (type score++) <-- increment
  24.  
  25. }
  26.  
  27. if question 3 is true{
  28.  
  29.  (type score++) <-- increment
  30.  
  31. }
  32.  
  33. if score is equals to 3(or perfect score) {
  34.     score is equals to score plus bonus points
  35.     display ("You have a bonus points your final score is: score")
  36.  
  37. }else {
  38.     display ("Your score is: score");
  39.  
  40.  
  41. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement