Write a program to sort name and age

Assignment Help Chemistry
Reference no: EM13840584

Write a program to sort name and age. The program takes input as the 1) first name which can be 2 to 10 characters 2) Data of birth as day, month, and year. The program sorts the name from a to z. The output of your program are 1) sorted names and 2) their respective age. If two names have same first character, then the two names are sorted by the 2nd character. If 1st and 2nd characters of two names are same, then the names are sorted by the 3rdcharacter, and so on.

There are only 4 names with age to sort.

For input and output you can use standard system input output in Java. If you want you can also use Java GUI tool such as Swing or JavaFx in your program. Sufficient comments should be placed in the source code. The program also properly checks for wrong input.

Please submit only 1) the source code (.java file) for this project 2) Two sample runs of your program showing the inputs and outputs.

A sample output will look like:

Name                                    Age

Anand                                   43

Andy                                     38

Dora                                      48

Dori                                        8

Reference no: EM13840584

Questions Cloud

Consumer and shareholder protection business and society : "Consumer and Shareholder Protection" Business and Society. You are tasked with writing a blog post discussing Face book’s stance on consumer privacy in the digital age. Additionally, you must comment on at least one of your peers’ blogs.
Policies and procedures facilitate strategy execution : Policies and procedures facilitate strategy execution when they are designed to fit the company’s strategy and objectives. What is a more recent company that has revised its policies and procedures to provide better top-down guidance to company perso..
Provide change based on the demographics of their employees : How do the benefits and services an organization provide change based on the demographics of their employees?
Technological advancements-challenges business and society : Technological Advancements and Challenges" Business and Society. In a departure from its normal business operations Apple has recently teamed up with a bio-tech company to investigate the possibility of cloning human organs. You have been tasked with..
Write a program to sort name and age : Write a program to sort name and age. The program takes input as the 1) first name which can be 2 to 10 characters 2) Data of birth as day, month, and year. The program sorts the name from a to z. The output of your program are 1) sorted names and 2)..
As continuation of your healthcare venture : As a continuation of your healthcare venture, to start up an urgent care center. You want to explore more innovative tools and be able to enhance and optimize your strategies to compete in healthcare.
Most important step in the decision-making process : Why is identification of the real problem the first and most important step in the decision-making process? How does attribution theory explain mistakes that can be made as managers and employees work together to explain why the problem occurred?
Write a loop that fills a vector v : Part BWrite a loop that fills a vector V with ten random numbers between 1 and 100.  Part CWrite a loop that fills a vector V with ten different random numbers between 1 and 100.
Natural law-deontology-utilitarianism and virtue theory : The most common ethical theories applied to health care include: natural law, deontology, utilitarianism, and virtue theory. Which of these theories most closely align to your personal values? Why? Explain your answer.

Reviews

Write a Review

Chemistry Questions & Answers

  State the percentages are the same for all samples analyzed.

A different sample of carbon dioxide also contains 27% carbon and 73% oxygen. The percentages are the same for all samples analyzed. Explain these observations with respect to atomic theory.

  Explain what is the volume in ml of the container

A container is filled with 4.0 X 10^22 O2 molecules at 5 degrees C and 845 mmHg. What is the volume, in mL, of the container

  Determine the energy of activation for the reaction

Using this information, determine the energy of activation for the reaction. How much would the reaction rate decrease if the reaction temperature were decreased from 25 C to 0 C

  Explain what is the rate constant k of the reaction

A certain reaction has an activation energy of 61.0 kJ/mol and a frequency factor of A1 = 2.00×10^12M^-1s^-1. What is the rate constant, k, of this reaction at 29.0 degrees celsius

  Explain d-galactose and l-galactose

What is the relationship between the following pairs of molecules. D-galactose and L-galactose. D-galactose and D-glucose

  Explain the pressure of the gas under the new conditions

A sample of an ideal gas at 0.93atm and 25oC occupied a volume of 17.3L. This gas was transferred to a 3.7L container without a temperature change. What was the pressure of the gas under the new conditions

  Question about catalytic converter

The catalytic converter on your automobile contains small amounts of a precious metal catalyst. Which of the following components would you expect to be decreased in your tailpipe emissions.

  The combustion of propane illustrated by the following

the combustion of propane illustrated by the following reaction releases 2428 kj per mole of reaction. a sample of

  What volume (in ml) of 1.12 m naoh is required

what volume (in mL) of 1.12 M NaOH is required to react with exactly 12.3 grams of ferric chloride, according to the following equation? FeCl3(aq) + 3 NaOH(aq) → Fe(OH)3(s) + 3 NaCl(aq)

  Calculate the minimum energy to produce an electron

Calculate the minimum energy a photon must have to produce an electron hole pair in an extrinsic semiconductor of band gap 1.0 electron volts.

  Explain chlorine gas react spontaneously to form a solid

Solid aluminum metal and diatomic chlorine gas react spontaneously to form a solid product. Give the balanced chemical equation (including phases) that describes this reaction.

  Define the solubility of potassium iodate

At a certain temperature, the solubility of potassium iodate, KIO3, is 41.1 g/L. Calculate its solubility product constant for this temperature.

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