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

  A sulfur trioxide is industrial production of sulfuric acid

Sulfur trioxide is used in the industrial production of sulfuric acid. The industrial and natural conversion of sulfur dioxide to sulfur trioxide can be represented by the following reaction

  State the formula weight of compound x

The formula weight of compound X is 14,200 g/mol How many total mg of X are there in the panda pancreas?

  Compound p binds with x to form complex px create the

compound p binds with x to form the complex px. a series of solutions was prepared with the total p concentration

  A solution is prepared by mixing 500 ml of 050 m cuno32

a solution is prepared by mixing 50.0 ml of 0.50 m cuno32 with 50.0 ml of 0.50 m cono32. sodium hydroxide is added to

  Determines the effect of osmolality of the solution

A woman requires taking ibuprofen twice daily in 625mg amount. Each pill in the bottle is 250 mg then determine the number of pills the woman requires to consume each time she needs 625mg dosage

  Determine the mole fraction biphenyl

Write down the balanced chemical equation when Fe 3 O 4 reacted with carbon monoxide and calculate mass of carbon dioxide that will be produced in this reaction if  234 g carbon monoxide is reacted with excess Fe 3 O 4 ?

  Explain sodium mandelate to produce a buffer solution

What volume of 0.200M HCl must be added to 250.0mL of 0.300M sodium mandelate to produce a buffer solution with a pH of 3.37.

  Explain how many grams of sucrose must be added

How many grams of sucrose must be added to 552 g of wwater to give a soution with a vapor pressure 2.0 mm Hg less than that of pure water at 200C ?( the vapor pressure of water at 200C is 17.5 mm Hg)

  Person must be guilty beyond a reasonable doubt

Christina Martin was convicted of murdering her long-time boyfriend by spiking his food with LSD because her teenage daughter told her that he had been sexually assaulting her. Christina did not fall under suspicion by the police until after her boyf..

  Compute the change in total internal energy for a system

Calculate the change in total internal energy for a system that releases 2.26 x 10^4 kJ of heat that does 5.54 x 10^4 kJ of work

  How many milliliters of hcl are required to react

Question- How many milliliters of 6.00 M HCl(aq) are required to react with 7.95 g of an ore containing 43.0% Zn(s) by mass

  Evaluate the molecular formula of a compound

To determine the molecular formula of a compound - gas was mixed with calcium chloride solution,

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