I'm going to share about the assignment that has given (Lab8). We are required to define and invoke various types of methods. Here I include all of the tasks that I have done.
Write a program that assign grades to students in a course. The program prompts the user to input all first and second tests, laboratory works and final exam marks and print out the grade for each of the student. Write the method assignGrade() that receives the mark of a student and display the grade based on the mark.


Write a program that has the following methods to:
a. count the number of letters in a string using the following header:
public static int countLetters(String s)

b. find the number of occurences of a specified character in a string using the following header:
public static int countCharacter(String str, char a

Write a program that assign grades to students in a course. The program prompts the user to input all first and second tests, laboratory works and final exam marks and print out the grade for each of the student. Write the method assignGrade() that receives the mark of a student and display the grade based on the mark.
Write a program that has the following methods to:
a. count the number of letters in a string using the following header:
public static int countLetters(String s)
b. find the number of occurences of a specified character in a string using the following header:
public static int countCharacter(String str, char a
That’s all from me. Remain positive though it is impossible. Have a nice day ^_^
Nurazreen binti Mohd Nor (182433)
SSK3100 (Group 15)
SSK3100 (Group 15)
Next blog : kychoong.blogspot.com (Choong Kar Yee)
No comments:
Post a Comment