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 matrix multiplication program

Write a C++, matrix multiplication program which you can instrument to monitor and measure execution time as a function of problem size. Make sure it works in Microsoft Visual Studio.

  Implemented a regular binary search tree

In Computer Science I, you implemented a regular binary search tree. Due to your busy schedule, you've decided that it would be best if you could simply reuse this code without any changes. You realize that your code would ONLY work for Arup's ass..

  What is the output of the following code

What is the output of the following code?

  Write a program to create 100 real random numbers

Write a program to create 100 real random numbers and store it into a 1-D array. Find the value 1413 from the stored data and print out the value 1413 and the index of the array to the screen

  Use a define statement to create a constant

Follow these specifications: Use a define statement to create a constant that will hold your student number. You should have separate string variables for your first and last name; name these first_name and last_name.

  Write a prototype for a function named triple

Write a prototype for a function named triple that returns a double and has one integer parameter and

  Display the largest and smallest numbers entered

Design a java program with a loop that lets the user enter a series of numbers - After all the numbers have been entered, the program should display the largest and smallest numbers entered.

  Question 1 what basic differences exist between the

question 1 what fundamental differences exist between object-oriented and relational database systems?question 2

  Write programme that allows a user to enter distinct words

Write a programme that allows a user to enter three distinct words and returns them as a single string

  The initial data structure with information about a service

Implement a program using function for a defined task. Initial data is read from a file and added from keyboard. Program has to output initial and resulting data.The initial data structure with information about a service:

  Conversion of programming languages

How to convert java proram into C++ program.

  What is meant by value type and reference type objects

Explain what is meant by value type and reference type objects in C#. Explain the differences, providing an example of each. Write the code for an example of each. Develop your examples, instead of using examples from the textbook or the Internet

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