Calculate the total of the scores by using while loop

Assignment Help Basic Computer Science
Reference no: EM13208357

Write a program to calculate the average of the class by following steps: 1. Ask user input how students in the class 2. Use random function to generate the score (between 0 and 100) for each student and calculate the total of the scores by using while loop 3. Define a function "double average(int, int)" to calculate the class average 4. In main function call average function and display the average of the class

Reference no: EM13208357

Questions Cloud

Find the sum of the elements of an array called list1 : Write a program to find the sum of the elements of an array called list1. The size of list1 is four bytes. The values of list1 are $FF, $1, $FE, and $02. To check your work, the sum should become $0200.
Write an algorithm to compute a student average grade : Weight is 20, maximum score is 75 iii. Final exam - Weight is 30, maximum score is 100 As an example, if a student scores 100 on the Homework Assignments, 55 on the Midterm exam and 85 on the Final exam, then their average grade is rounded to 82.
Create an equally weighted portfolio : Create an equally weighted portfolio of five computer software stocks. Is such a portfolio a diversified portfolio? What is the beta of the portfolio? What is the expected return of the portfolio?
Natural environment of a bird in an artistic composition : If an artist wanted to emphasize the natural environment of a bird in an artistic composition, the use of which medium might be most appropriate?
Calculate the total of the scores by using while loop : Write a program to calculate the average of the class by following steps: 1. Ask user input how students in the class 2. Use random function to generate the score (between 0 and 100) for each student and calculate the total of the scores by using ..
What is the npv of project : The risk free rate is 4%, the market risk premium (the average difference between the return on the market and the risk-free rate) is 5%, and the wine project will be financed with $600,000 of debt. What is the NPV of this project?
Use the first set of information to create an online order : After the orders are placed, print a report of the inventory reflecting the current items in the inventory. You will also need to create the inventory object with at least 3 items instock.
Create an instance variable credit limit to indicate : Create another sub class CreditCustomer. Create an instance variable credit limit to indicate the maximum limit ($500). Credit customers get a markup of 2% on the order price.
What defense or defenses will big petroleum invoke : Current legislation limits the amount of economic-related liabilities to be paid by a company on account of an oil spill to $75 million.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Compare time complexity of convolution with kernel

Compare the time complexity of convolution with a n x n kernel when using: direct convolution with the 2-D mask, and separable kernel.

  Criteria for adaptive approaches to system development

Let the criteria for choosing among adaptive approaches to system development. Which CSS project characteristics favor predictive approach? Which favor UP?

  Design robot that can perform any function or activity

Design a robot that can perform any function or activity you choose from an automatic laundry robot to a customer service robot.

  Reverse the string

Reverse the string. If the reversed string is the same (.equals()) as the original, pared down, string then it is a palindrome.Way 2: Look at the first and last letter and see if they are the same (using the charAt() method), then the second letter ..

  What is technology s-curve

What is technology S-curve? Give an example that explains how to use S-curves to prescribe development of new component technologies.

  Training data from gaussian distribution of variance

Suppose we have training data from a Gaussian distribution of known covariance S but unknown mean Mu.

  Storage system that best fits the needs

An information technology recruiting firm has been growing rapidly over the past few years. The number of clients over the past year has quadrupled, and the number of employees has doubled.

  Analyze faster processor chip result increase in performance

Analyze the following statement: "Using the faster processor chip results in corresponding increase in performance of a computer even if main memory speed remains same."

  Assume that the input to each statement is the same

Assume that the input to each statement is the same: 5 28 36 a. cin >> x >> y >> ch; b. cin >> ch >> x >> y; c. cin >> x >> ch >> y; d. cin >> x >> y; cin.get(ch);

  Extended grep for regular expressions

That contain the word "as" exactly onceb) that contain the word "sa" more than once

  Driving force causing this evolution

Discuss the evolution of client-server computing from file server to multilayer applications to Web-based applications. What has been the driving force causing this evolution? Where do you think network computing will be in the next five years? Ten y..

  Explain cause and effect transition happen

One process could cause another process to make a transition. Under what circumstance, if any, would the following. Cause and effect transition happen ?

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