Write a program which can be used to calculate bonus points to given scores in the range [1..9] according to the following rules:
If the score is between 1 and 3, the bonus points is the score multiplied by 10
If the score is between 4 and 6, the bonus points is the score multiplied by 100
If the score is between 7 and 9, the bonus points is the score multiplied by 1000
For invalid scores there are no bonus points (0) Your program must make use of 2 parallel arrays – one to store the scores and the other to store the bonus points. You need to make provision for 5 scores (and bonus points) that will need to be stored.
For this program implement the following methods and use these methods in your solution (do not change the method declarations):
static void getScores(int[] scores)
static void calcBonus(int[] scores, int[] bonusPoints)
static void displayAll(int[] scores, int[] bonusPoints)
Create an enumeration named Month that holds values for the months of the year, starting with January equal to 1. Write a program that prompts the user for a month integer. Convert the user’s entry to a Month value, and display it.
Create an enumeration named Month that holds values for the months of the year, starting with
January equal to 1. Write a program that prompts the user for a month integer. Convert the
user’s entry to a Month value, and display it.
Make use of methods and arrays
Create an enumeration named Month that holds values for the months of the year, starting with January equal to 1. Write a program that prompts the user for a month integer. Convert the user’s entry to a Month value, and display it.
Create an enumeration named Month that holds values for the months of the year, starting with January equal to 1. Write a program that prompts the user for a month integer. Convert the user’s entry to a Month value, and display it.
Write a program which can be used to calculate bonus points to given scores in the range [1..9] according to the following rules:
If the score is between 1 and 3, the bonus points is the score multiplied by 10
If the score is between 4 and 6, the bonus points is the score multiplied by 100
If the score is between 7 and 9, the bonus points is the score multiplied by 1000
For invalid scores there are no bonus points (0) Your program must make use of 2 parallel arrays – one to store the scores and the other to store the bonus points. You need to make provision for 5 scores (and bonus points) that will need to be stored. For this program implement the following methods and use these methods in your solution (do not change the method declarations):
static void getScores(int[] scores)
static void calcBonus(int[] scores, int[] bonusPoints)
static void displayAll(int[] scores, int[] bonusPoints)
Create an enumeration named Month that holds values for the months of the year, starting with
January equal to 1. Write a program that prompts the user for a month integer. Convert the
user’s entry to a Month value, and display it.
Write a program for sorting an array. Declare a single dimensional array and accept 5 integer values from the user. Then sort the input in ascending order and display the output.
In C# Windows form