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

1.Create a console program that will perform the following:


•Ask the user to enter five (5) grades


•Compute the average of the grades


•Round of the average using method of Math class



2. Name the project as ComputeAverageApp and the class as ComputeAverageProgram.



Example output:


Enter 5 grades separated by new Line.


90


83


87


98


93


The average is 90.2 and round off to 90.

The miles per gallon (mpg) of a car can be calculated by dividing the miles driven by the number of gallons of gas used. Any time you have division in a computer program you have to check division by zero (the results of division by zero is infinity). If you don't a user could input zero for the number of gallons used and crash your program. You should also always check that any numeric input only accepts numbers and not letters, and that any numeric input is reasonable. For example, miles driven is probably not more than 1000 miles and is also a positive value (negative miles driven makes no sense, as does negative gallons used).


Assignment: Write a program to calculate mpg given miles driven and gallons used.  Use exception handling in C# to check for numeric inputs and division by zero. Use appropriate logic to check for the reasonableness of the inputs. 


Write a console application that uses at least five different method of math class. Provide a meaningful identifier of the variables are constant. Name the namespace as mathApp and it's class as mathProgram.

Write console application that initializes at least five variables or constant with different data types then display their values. Provide a meaningful identifier of the variable or constant.

Create a console program that will perform the following:





Ask the user to enter five (5) grades





Compute the average of the grades





Round of the average using method of Math class




Example output:



Enter 5 grades separated by new Line.



90



83



87



98



93




The average is 90.2 and round off to 90.




Write a program using one-dimensional array that accep t fiveinput values from the keyboard. Then it should also accept a number to search. This number is to be searched if it is among the five input values. If it is found, display the message “Searched number is found!”, otherwise display “Search number is lost!”


5 types of time complexity


Write an algorithm using pseudocode to verify that a password's length exceeds 8 characters, but is shorter than 12 characters. (INCLUSIVE 8-12)


Write an algorithm using pseudocode to check the age and height of a child who wants to go on a fairground ride. The child's age must exceed 7, but below 12, their height must exceed 110 cm, but below 150 cm.


Design and implement a program that computes final averages for a set of grades. The program reads the grades from a user. (10) The format of a grade line is: N grades1, grades2, …………., grades5 Where N is total number of students and grades is the ith score. All scores must be between 0 and 100. The program reads the grades from the user, calculate and display the average


The weighted average is computed as:

NB: Your program should validate its input. That is, it should make sure each score is between 0 and 100 and that each student has n scores/ grades. If a student’s grades are invalid, the program should display an error message. The program should contain modules / functions that handles validating the input


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS