Write a program that reads in 5 marks. Your program must use the getMark method to ensure that valid marks are processed. You need to calculate the sum and the average of the marks. Your program must also use the isPass method to determine the number of pass marks entered. When the 5 marks have been processed you need to display the sum, average and number of passes (from these marks).
Write a user defined method named isPass that can be used to determine whether a mark is a pass mark (greater or equal to 50). The method must take as input a mark, and return a boolean, indicating whether the mark was a pass mark.
Write a user defined method named getMark that can be used to get a valid mark from the user. Your method must continuously ask the user for a mark, until a valid mark is entered (valid marks are between 0 and 100). If a user enters an invalid mark, display an error message before asking for a valid mark to be entered. The method must return the valid value to the calling program.
Create a program whose Main() method prompts a user for length and width of a room in meter. Create a method that accepts the values and then computes the estimated cost of painting the room, assuming the room is rectangular and has four full walls and the walls are 2.6 meter high. The rate for the painting job is R20 per square meter. Return the estimated cost to the Main() method, and display it.
Exceptions in C# - you like teaching mathematics and you are creating a small game for kids. game has multiple steps.: 1. Display following message to user:"Enter any number from 1-5" 2.User enters an option from 1-5,show the exact message to user for the number selected 1) enter even number
Read the four input string variables s1, s2, s3, s4 and store it in single string variable "COLLEGE" and display the string.
Write a function that takes an array of floating point values,
An integer that tells how many floating point values are in the array. The function must reverse the order of the value in the array
Write a program that reads in 20 numbers and calculates the average of the numbers which are smaller than 10.
Write a program that reads in a month of the year as a number and display the number of days in that mind. Keep in mind the impact of leap years
Create a new project, and name it P1T7 Write a program that requests from a user the number of pies (at R18.50 per pie) and the number of hamburgers (at R35.00 per hamburger), and then calculates the total for the order. Now extend this program to request the amount paid by the user, before calculating the change that needs to be paid out. Challenge: Can you calculate and display the exact coins and notes that are needed to make up the change (least amount of notes and coins)? For example, R13.50 change will need the following: 1xR10.00, 1xR2.00, 1xR1.00 and 1x50c