Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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. 


  1. Create a class named Person with an instance variable named full_name. Declare one (1) constructor without a parameter and initialize the variable with a default value.
  1. Create a struct named Product where its fields are code, description, and price. 

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




LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS