Write a java program | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Write a java program

Write a java program that keeps asking the user to enter a correct value for student mark (must be between 0 and 100 inclusive) repeatedly. The program stops when the user enters an incorrect value and prints the percentage of passed (mark greater than or equal 60) and failed students. 1*Consider the case when the user enters no correct value. 2*Hint: Use counters to compute the percentages.

6th Nov 2018, 5:20 PM
Salwa
Salwa - avatar
6 Answers
+ 10
Please show us your attempt(s) first.
6th Nov 2018, 5:35 PM
Harsh
Harsh - avatar
+ 1
Salwa What Stellar Fox rightly asked you is not the output of your program but the code of your program... Futhermore is not clear if your is an assignement for the community or an your assignement
6th Nov 2018, 7:23 PM
KrOW
KrOW - avatar
0
This is the outbut: $ java StudentResult Student 1 mark: -1 No mark was entered ----------------------------------- ----------------------------------- $ java StudentResult Student 1 mark: 88 Student 2 mark: 75 Student 3 mark: 45 Student 4 mark: 52 Student 5 mark: 91 Student 6 mark: 200 60.00% students passed 40.00% students failed
6th Nov 2018, 6:04 PM
Salwa
Salwa - avatar
0
I asked the question here because I don't know the answer or the code and this is the example of output not the output of my code please focus...
6th Nov 2018, 7:27 PM
Salwa
Salwa - avatar
0
Like Stellar Fox said you, post you attempt
6th Nov 2018, 7:30 PM
KrOW
KrOW - avatar
0
Please write a program to input name, I'd number and section, address and age. Sample output: Cristine Mae Eustaquio 1802267Charity San Tuao Cagayan 14
19th Sep 2020, 4:16 PM
Irene Eustaquio
Irene Eustaquio - avatar