Write program to allow user to enter marks of students

Assignment Help Programming Languages
Reference no: EM1362717

Q1) Write a program that allows user to key in marks of students. The number of students is determined by the user at the start of the program. The program should then:

- Find the total and average of the marks. The average is to be performed through function call, and its output is to be shown in two significant figures.
- The number of students passed, where passing mark is 50 and above.
- Notice the "st", "nd", "rd" and "th" of the numbers, which should be included. For example, 1st, 2nd, 3rd, 4th , 28th, etc.
- If more than 75% students passed, then print the output "The students did well". Otherwise, print "the students should work harder".

Reference no: EM1362717

Questions Cloud

Organic food and bottled water : Is organic food a fad and why does it cost more than normal food and aren't pesticides used on organic food also?
Illustrate what happens to the marginal product : Illustrate what happens to the marginal product of each individual factor as that factor is increased, and the other factor is held constant.
Determining production costs : The Fancy Umbrella Company makes beach umbrellas. The production process requires 3 square meters of plastic sheeting and a metal pole. The plastic sheeting costs $0.50 per square meter and each metal pole costs $1.00.
Hospital maintenance case : How many hours each month are spent performing preventive maintenance if they achieve their 90% utilization and corrective/ preventive mix targets?
Write program to allow user to enter marks of students : Write a program that allows user to key in marks of students. The number of students is determined by the user at the start of the program.
Which type of research is professor carter employing : Which kind of research is Professor Carter employing.
Taxation of nonprofit organizations : Your local government created an agency to serve the local community in providing low income housing. That housing agency, called the Local Housing Board, is a tax exempt agency of local government and was created to receive federal funds for hous..
Differences between secured and unsecured creditors : Determine the principal differences between Secured Creditors, Unsecured Creditors, Preferred Stockholders and Common Stockholders? During a partial or complete liquidation, what is the priority of asset distribution?
Explain why do firms choose to make large increases : Explain Why do firms choose to make large increases in their dividends or start a stock repurchase program?

Reviews

Write a Review

Programming Languages Questions & Answers

  Develop pseudo-code for program to retrieve bytes

Develop the pseudo-code for a program that will retrieve 2 bytes (NUM1 and NUM2) from memory, determine which is closest to the numeric value 50.

  Design program to accepts account number

Design a program that accepts an account number, the account owner's first and last names, and a balance. Print the projected running total balance for each year for the next 20 years.

  Program to calculate the electricity bill

Write a program to calculate the electricity bill. The rates of electricity per unit are as follows: If the units consumed are equal or less than 100, then the cost is Rs 8/- per unit.

  Determine total cost of order-display it in alert dialog box

After you determine the total cost of the order (purchase plus shipping and handling), display it in an alert dialog box.

  Development of the current strategic potential of airline

Evaluate the organisation's current external and internal strategic position

  Write program to compute and outputs the average gpa

Write a program that computes and outputs the average GPA for both female and male students. Format your results to two decimal places. Your program should use the functions.

  Ethics and social responsibility

Ethics and social responsibility at McDonalds

  Write a program in q basic that accept student name

Write a program in Q basic that accept a student name,score obtained in 5 course and compute the average score of the student and my program must display the name of the student

  Create program to calculate and display number of miles

Create a program to calculate and displays the number of miles per hour over the speed limit that a speeding driver was doing. The program should ask for the speed limit and the drivers speed.

  Write html form that prompts user to enter value

Write an HTML form that prompts the user to enter a value. In PHP, write a script to determine whether the value contains an integer , a decimal-place number.

  Define four user-defined exceptions

You will need to define four user-defined exceptions; one for unknown movies, one for unknown member, one for unknown payment method.

  Write program to calculate how much person earns

Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd