+ 1
Help me to fix the error in code
8 Réponses
+ 2
The code is fine
+ 1
please put a link in here. you can use the plus button to the left of the reply field. dont forget to select my codes in the top right corner
+ 1
Except u need to do proper comments at the top of the code. For user to understand in what series the inputs are to be made..
The inputs are to be in this order
Name
Branch
Roll no
And then six sub marks..
And make sure every inputs are passed at once in separate line.
So example input:
Sami
Ece
6532574354
54
65
76
43
87
63
And make sure the roll no length to be equal to 10
+ 1
this is the input:
https://pasteboard.co/IuPnIOA.png
this is the output : https://pasteboard.co/IuPnq2d.png
+ 1
Still it is not converting branch name to upper case .n i gess fail condition is also not working
+ 1
First thing at Line 81 u r converting the branch input to uppercase and then it test the switch case..
But to display the branch in uppercase u need to add uppercase () method on line 108 as
System.out.println("Branch:"+ stuBr.toUpperCase() );
And fail condition is wrong at Line 101 it should be (sub>=0 && sub<=34)
0
But it's not showing output
0
Okay