Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Good Luck, (5 points) Write a function called CheckPassFail

Good Luck, (5 points) Write a function called CheckPassFail which

takes integer as a parameter and prints “PASS” if the int variable “mark” is more than or equal to 50; or prints “FAIL” otherwise. The program shall always print “DONE” before exiting. 2. (5 Points) Write a function called CheckOddEven which takes integer as a parameter and prints “Odd Number” if the int variable “number” is odd, or “Even Number” otherwise. The program shall always print “BYE!” before exiting. Hints: n is an even number if (n % 2) is 0; otherwise, it is an odd number. 3. (5 Points) Write a function called SumAndAverage to produce the sum of 1, 2, 3, …, to 100. Also compute and display the average. The output shall look like: The sum is 5050 The average is 50.5 4. (5 Points) Write a function called GradesAverage, which prompts user for the number of students, reads it from the keyboard, and saves it in an int variable called numStudents. It then prompts user for the grades of each of the students and saves them in an int array called grades. Your program shall check that the grade is between 0 and 100. A sample session is as follow: Enter the number of students: 3 Enter the grade for student 1: 55 Enter the grade for student 2: 108 Invalid grade, try again… Enter the grade for student 2: 56 Enter the grade for student 3: 57 The average is: 56.0 Screenshots HAVE to be included in the answer!

Background image of page 1
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"