Write a program that reads numbers

Assignment Help C/C++ Programming
Reference no: EM1367766

Write a C++ program that reads N positive numbers from the keyboard, calculates and displays the following information.

a. Count of all numbers which are greater than 49.9 and less than 75.0. If no numbers greater than 49.9 and less than 75.0 are entered, 0 for the count value should be displayed.

b. Sum of all numbers which are greater than 49.9. If no numbers greater than 49.9 are entered, 0 for the sum value should be displayed.

c. Average of all numbers which are greater than 49.9. If no numbers greater than 49.9 are entered, 0 for the average value should be displayed.

d. Smallest number of all numbers entered from the keyboard. e. Descending order of two largest numbers entered from the keyboard. f. Value of P [where P = (Largest number entered from the keyboard/100)*Percentage; Percentage=25].

Reference no: EM1367766

Questions Cloud

Pricing and competitive strategies : Pick a good or service you are familiar with. Speculate how the price for that good or service may have been set and how well this price maximizes profit for the company and determine what shifts the company should make in its pricing strategy.
Determine the effect of expansionary monetary policy : Suppose the effect of monetary policy on the exchange rate value of the dollar. Estimate the effect of expansionary monetary policy on each of the following.
Design vb project to calculate checking account balance : Design vb 2008 project to calculate a checking account balance. form: include radio buttons to indicate the type of transaction: deposit, check, or service charge.
Write program to assist in monitoring gasoline supply : Write program to assist in monitoring gasoline supply in refinery storage tank. Your program must alert supervisor when supply of gasoline in the tank falls below 10% of the tank's
Write a program that reads numbers : Write a C++ program that reads N positive numbers from the keyboard, calculates and shows the smallest number of all numbers
Illustrate each company share of market at beginning : Illustrate what was each company's share of market at beginning and end of month. If current trend continues Illustrate what will market shares be.
Issue of differences in international interest rates : Explain why would we expect the difference in the one year interest rate on the dollar vs one year interest rate on, the Euro or any other freely convertible currency,
Compute the overall npv if tangible benefits are given : Tangible benefits of $190,000 per year. If the cost of capital is 12 percent, compute the overall NPV? Overall ROI? Break-even.
Describe graphical user interfaces-communications message : Describe some of the graphical user interfaces (GUIs) and communications messages that occur during operation of a microwave.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a program that inputs a dollar amount to be printed

Write a program that inputs a dollar amount to be printed on a check and then prints the amount in check-protected format with leading asterisks if necessary

  Prepare an accounting for a dorm''s kitchen

The "purpose" of the program is to prepare an accounting (database) for e.g. a dorm's kitchen, to keep track of the consumption of beer for each room.

  Computer programming techniques

Construct a program from a design and use appropriate functions

  Create class integerset

Create class IntegerSet for which each object can hold integers in the range 0 through 100. Represent the set internally as a vector of bool values. Element a[i] is true if integer i is in the set. Element a[j] is false if integer j is not in the set..

  Write a program to read a data file and extract parameters

Write a C/C++ program to read a data file and extract parameters. The program must obtain the filename via a command-line argument.

  Base process which communicate with child processes

Write a program which has a "base process" which communicates with child processes acting as "bombers" that it creates.

  Create a program that maintains the required book catalog

Create a program that maintains the required book catalog for the circulation desk of a library.

  Program to declare array alpha of components of type int

Write C++ statements to do the following: Declare an array alpha of 15 components of the type int. Output the value of the tenth component of the array alpha.

  Write a driver program called testrationalnumber.cpp

Write a driver program called testRationalNumber.cpp to test each of the above functions and overloaded operators in the RationalNumber class.

  C program to compute parking fare for customers

Write C program to compute parking fare for customers who park their cars in parking lot when following information is provided: A character showing type of vehicle: C for car, B for bus and T for truck

  Write a program that will be used to gather statistical data

Write a program that will be used to gather statistical data about the number of movies

  Computer programming using c language lab

Computer programming using c language lab

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