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

  Write some code that puts a zero in every element of q

Given a two-dimensional array of integers named q, with 2 rows and 4 columns, write some code that puts a zero in every element of q. Declare any variables needed to help you.

  Program to report on the roots of a quadratic equation

Write a complete C++ program to report on the roots of a quadratic equation ax2 + bx + c = 0, a ≠ 0. compute the roots.

  Skills required by personnel working in information security

What skills are required by personnel working in information security? Write down some job titles in the field and come up with some required qualifications and some desirable qualifications.

  What is printed by the following program

What is printed by the following program?

  Write program to read from file to find number of integers

Write down the program which reads from file numbers.txt 30 integers in range 0 - 200. Program ‎then determines number of integers in each of given ranges.

  Takes a string containing a full name

Write a program that takes a string containing a full name and outputs each part of the name separately with its length. The name should be in the form of first, middle, and last name, separated from each other by a single space. For example, if the ..

  Matching program that takes input from a text file

need to make a string matching program that takes input from a text file and outputs that match (if there is one) asked from the user. i have done this part , the only problem is that , with the output match , i also need to print some words before a..

  Consider the following schema of an online flight

consider the following schema of an online flight reservation agency.customercid lastname firstname dobflightfid

  How can we definean instance of this class

How can we definean instance of this class?

  Need c++ solution to cover the final stage of euro 2012

From Group Fase to elimination fases, it´s not the user who defines teams, because that must be made automatically according to classification in group fase - considering regulations.

  Build a table of reynolds numbers at flow velocities

Write a program code to compute and build a table of Reynolds numbers at flow velocities varying from 100 to 1000 ft/sec (at increments of 100)

  Write a program that calculates the user''s bmi

Write a program that calculates the user's body mass index (BMI) and categorizes it as underweight, normal, overweight, or obese, based on the following table from the United States Centers for Disease Control

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