Prompt the user for the name and age of a group of people

Assignment Help Data Structure & Algorithms
Reference no: EM13943951

Please help with the following problem.

Prompt the user for the name and age of a group of people.

The group's size is unknown initially, so the program must keep asking the user if they want to enter more data.

When the user finishes, the program should print each person in order from the youngest to the oldest, that is, the program should sort by age. Implement/use a sorting algorithm of your choice to solve this problem.

Reference no: EM13943951

Questions Cloud

Determine the reimbursement for medicaid : Using the same CPT code, 99214, determine the reimbursement for Medicaid (fee schedules should be available from the individual state)
Identify all the major internal control weaknesses in europe : Identify all the major internal control weaknesses in European Imports' system and how the resulting action could hurt European Imports. Also state how to correct each weakness.
Receiving trust money from customers and clients : Identify the reasons you would use a trust account when receiving trust money from customers and clients.
Evolution of inflation : You should write a report which considers (i) the evolution of inflation and the rest of the underlying series in the workfile and (ii) generate forecasts on inflation using non-structural, structural models, and a combination of the two.
Prompt the user for the name and age of a group of people : When the user finishes, the program should print each person in order from the youngest to the oldest, that is, the program should sort by age. Implement/use a sorting algorithm of your choice to solve this problem.
Compare fields of moral, social, and political philosophy : What do these fields have in common, if anything? How are they different? How do you believe the questions they pose figure into a consideration of modern life?
Prospects make up a target market for renting property : Identify which of the following prospects make up a target market for renting property:- a. international b. interstate
Discuss the military strategy of the north : Discuss the military strategy of the North from 1861 to the end of 1862. How successful was this strategy
Assume that firedup has created a database : Create a view called CustomerRepair that shows CUSTOMER.Name and STOVE_REPAIR.SerialNumber, Date, Description, and TotalDue, where TotalDue is the difference between TotalCost and TotalPaid.

Reviews

Write a Review

Data Structure & Algorithms Questions & Answers

  Prints the sorted array to the console.

check all the values between position i and size-1 to find the smallest one

  Question about unix commands

Assume you have a document called records.txt having the list of employee id and workers names. Every line contains a single employee id immediately followed by the employee name in the format Last name, First name.

  Explain eager decision tree algorithm-lazy knn algorithm

Discuss the advantages and disadvantages of the new algorithm compared with the eager decision tree algorithm, and the advantages and disadvantages of the new algorithm compared with the lazy kNN algorithm.

  Unctions for doing sort, search, display, replace, delete

create functions for doing sort, search, display, replace, delete, and add. You can use dynamic memory allocation for enlarge the size of pointer array for adding a new country.

  Computing time complexity of procedure

What is the time complexity of the procedure? If A[l .. r] = [24, 30, 09, 46, 15, 19, 29, 86,78], what is the output?

  Designing a visual c-sharp program

Design a Visual C-Sharp program for an Ice Cream Shop. The program will store information about ice cream cones and customers.

  Calculate mccabe''s cyclamate numbe

Show that McCabe's cyclamate number is an interval scale measure. and  Calculate McCabe's cyclamate number on the following source code. Draw a control ?ow graph. Label the regions with Roman numerals.

  The set of students studying discrete mathematics the set

for each of these pairs of sets determine whether the first is a subset of the second the second is a subset of the

  Portfolio planning using optimization

Set this problem up as a linear programming model in Excel, and use Solver to determine how the $10 million should be invested. What is the overall return (in dollars terms)

  Creating a chart for it system

Make a chart that demonstrate the breakdown of the overall IT systems at a big corporation or breakdown a particular aspect of the IT systems such as the network or the business applications systems.

  Height information in an avl tree

Design a linear-time algorithm that verifies that the height information in an AVL tree is correctly maintained and that the balance property is in order.

  What is global or per process page replacement algorithms

What is better global or per process page replacement algorithms?

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