A JAVA Program
to find a Percentage out from CGPA (Printed on your result
).
There are multiple ways to write a program for this topic.
There are ✌️ Program files in two different Folders. In which,
- 📁Program Folder (
LOOP
) ♾ 📝 cgpaToPercent_ForLoop.java - 📁Program Folder (
no_LOOP
) 📝 cgpaToPercent_no_ForLoop.java
And Some of the comments over the code so that you can understand it very well.
Its easy, you will get it.
I tried to make it as easy as possible to make you guys understand easily.
I haven't added Exceptional Handling
for invalid input which you may type by mistake.🥲
I will think of it in future. 😋
Compile:
~$ javac cgpaToPercent_ForLoop.java
Run:
~$ java cgpaToPercent_ForLoop
Compile:
~$ javac cgpaToPercent_no_ForLoop.java
Run:
~$ java cgpaToPercent_no_ForLoop
First Year (option_1)
First Year (Option_2)
Direct Second Year (Option_1)
Direct Second Year (Option_2)
First Year (option_1)
First Year (Option_2)
Direct Second Year (Option_1)
Direct Second Year (Option_2)