Write a programme to get ten numbers

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

Q.1. Write a program that gets  10 numbers  and stores then in an array. Then sort (low to high) the number using a function.

Note: The program requires ask user for continuing for getting next  15 numbers.  

Q.2 . Write a program for:  A child’s rectangle play yard is to be built next to the house. To make the three sides of the play-pen, twenty-four meters of fencing are available. What should be the dimensions of the sides to make a maximum area?

Formulation:   Variables                x,y   and        x is in  (2-8}

                     Max                   Area=A     *y

                   Constraint           2x+y=24

Q.3 Write a program  that prompts  for and gets a student name and exam mark until  a name of "quit" is entered. The program should provide the following functionality

a) Use  a condition  statement  to  check that  a valid  exam  mark  is  in the range  0 to  100 inclusive.

b) Otherwise  when  an error is detected,  display an error and re-prompts  the user for the data until the correct data is entered.  You can use either a while or do/while  loop for this if you wish.

c) After  checking  for  a  valid  mark  and  finding  the  corresponding  grade,  display  the results by showing the student name and grade to the user.

Reference no: EM13871627

Questions Cloud

Calculate the total number of copies that the publisher : Your finance text book sold 55,000 copies in its first year. The publishing company expects the sales to grow at a rate of 20.0 percent for the next three years, and by 13.0 percent in the fourth year. Calculate the total number of copies that the pu..
Required journal entries for the two events in december : Give the required journal entries for the two events in December. Show how the amounts related to Accounts Receivable and Bad Debt Expense would be reported on the balance sheet and income statement for 2015. On the basis of the data available, does ..
What are the effects of liberalizations on emerging market : What is a stock market liberalization? What are the effects of liberalizations on (a) emerging market correlations with the world stock returns, (b) local market volatility, and (c) the local cost of capital?
Evaluate what alternative venture capital shortcut : Evaluate what alternative venture capital shortcut (VCSC) methodologies might be applied in valuing an entrepreneurial venture. How might you determine which of these alternatives is the most appropriate to use?
Write a programme to get ten numbers : Write a programme to get 10 numbers and store in an array. than sort (low to high) the number using a function.
What are the spiritual implications for this client : What are the spiritual implications for this client , Is the use of religion functional or dysfunctional and What spiritual interventions might be appropriate?
What is the aftertax cash flow from the sale : Consider an asset that costs $783,000 and is depreciated straight-line to zero over its nine-year tax life. The asset is to be used in a five-year project; at the end of the project, the asset can be sold for $182,000.If the relevant tax rate is 30 p..
Straight line method to amortize the discount : Use the same information in RE14 3, except assume that the bonds are sold for $318,000.
Calculate the amount of itemized deductions the gibsons : How much can she deduct as a charitable contribution to the university's athletic department - Calculate the amount of itemized deductions the Gibsons may claim for the year.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Write a recursive function squares

Write a recursive function squares that takes a list of numbers, and returns a new list of the squares of those numbers.

  Using the hotelroom class of programming problem

Using the HotelRoom class of Programming Problem 1 , Section 12.4 , write a program that uses an array Hotel [ ] of 200 HotelRoom pointers to store information about a set of hotel rooms . The program should ask the user to ent information about a ro..

  C program to solve the quadratic equation of rocket launch

Write a C program to solve the quadratic equation of rocket launch by computing the roots (t1 and t2) of that quadratic equation: gt2 + vt + l = 0 (or) for simplicity ax2 + bx + c = 0. Get the values of g, v, and l from the user. The program should d..

  Write an array-returning method

Write an array-returning method that takes a two-dimensional array of chars as a parameter and returns a single-dimensional array of Strings as follows:

  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

  Create a c++ function named pathexists

Write a C++ function named pathExists that determines whether or not a there's a path from start to finish in a 10x10 maze. A 2-dimensional 10x10 character array of Xs and dots that represents the maze. Each 'X' represents a wall, and each '.' rep..

  Reads in a list of integers

Write a program in C++ that reads in a list of integers into and array with base type int. Provide the facility to either read this array from the keyboard or from a file, at the user's option. If the user chooses file input, the program should reque..

  Write an input validation loop

write an input validation loop that asks the user to enter a number in the range of 1 through 4.

  Prepare a linear support vector machine svm

Write a computer program to prepare a Linear Support Vector Machine SVM

  Determine the position in the x-y plane

Every circle has a center and a radius. Given the radius, we can determine the circle's area and circumference. Given the center, we can determine the position in the x-y plane.

  Implement the default constructor

Implement the default constructor and the constructors with one and two int parameters. The one parameter constructor should initialize the first member of the pair; the second member of the pair is to be 0.

  Include a main function that will solicit

Include a main function that will solicit a DNA sequence string from the user, call the genes function to obtain all the genes in the sequence and print each one on the console display

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