Write a program that prompts for and gets a student name

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

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.

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=x*y

Constraint 2x+y=24

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:

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

• 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.

• 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: EM13719762

Questions Cloud

Explain what is the concentration of potassium in clued : if the natural abundance of K 40 is 0.010% and 3500 disintegration of K 40 occur every 10.0sec, in human body weighing 100kg,then what is the concentration of potassium in clued all isotopes in that body? Assume density of human is 1g/ml
Explain the molecule c6h12 does not contain a double bond : If the molecule C6H12 does not contain a double bond, and there are no branches in it, what will its structure look like?
Estimate the volume of a solution of naoh : Estimate the volume of a solution of 2.3 M NaOH that must be added to adjust the pH from 4.0 to 9.0 in 61 ml of a 68 mM solution of phosphoric acid.
Define what is the concentration of potassium : The half life of potassium-40 is 1.26X10^9 yrs, if the natural abundance of k-40 is .010% and 3500 disinigrations of k-40 occur every 10 sec in a human body weighing 100kg then what is the concentration of potassium (include all isotopes) in that ..
Write a program that prompts for and gets a student name : Write a program that gets 10 numbers and stores then in an array. Then sort (low to high) the number using a function.
Explore the pros and cons of the employee free choice act : What are the pros and cons of the Employee Free Choice Act, and the Mandatory Secret Ballot Protection Act?
How many methyl equatorial positions are possible with cis : How many methyl equatorial positions are possible with cis-1,4-dimethycyclohexane for a single configuration
Define the turnover number of the enzyme invertase : Determine the value of the turnover number of the enzyme invertase, given that Rmax (Vmax) for invertase = 15.8 mmol•L-1•min-1 and [E]t = 2.0 ?mol•L-1. Invertase has a single active site.
How many grams of c3h8o3 must be added to water : How many grams of C3H8O3 must be added to 720 grams of water at 70.0oC in order to lower the vapor pressure by 4.25 torr. The vapor pressure of water at 70.0oC is 233.65 torr.

Reviews

Write a Review

C/C++ Programming Questions & Answers

  Create a function gcd

Create a function gcd(a, b) that receives two integers and returns the greatest common denominator of the two integers.

  Write a c program that converts celsius temperatures to

write a c program that converts celsius temperatures to fahrenheit temperatures.the formula isf95c 32.f is fahrenheit

  An expression whose value depends upon the evaluation

Give an example in C++ of an expression whose value depends upon the evaluation order. Show the orders that produce different values and the values they produce. Explain what side effect is the expression contains.

  Write a statement that writes both of their values

Write a statement that writes both of their values to standard output in the format

  Calculate distances and map a route

The GPS navigation system uses the graph and geometric algorithms to calculate distances and map a route. One of the geometric problems is the closest-pair problem. Given a set of points, the closest-pair problem is to find the two points that are..

  Assume that you are tasked with tracking the orders which

loops and nested loops please respond to the followingbullsuggest one 1 example of a problematic programming situation

  Lab-1the goal of this lab is to better familiarize you with

lab-1the goal of this lab is to better familiarize you with polymorphism and the factory design pattern two key

  Prepare a program to get a number from the user

How will you prepare a program to get a number from the user and then demonstrate the output as the result above?

  Construct vector and linked lists data structures

You will prepare sorted versions of the Linked Lists and Vector data structures developed in class

  Implement the simplified expression using and

Find the complement of F(A,B,C) = AB + (BC' * A) and reduce it. Show your work for the reduction using the axioms of Boolean Algebra. Then, implement the simplified expression using AND, OR, and NOT gates.

  Contacts class that contains an array

Create a Friend class that contains a first name, last name, a birthday, and a telephone number. Create a Contacts class that contains an array of Friend as well as the owner's name and cell phone Number.

  Submap that accepts two maps from strings

Write a method called subMap that accepts two maps from strings to strings as its parameters and returns true if every key in the first map is also contained in the second map and maps to the same

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