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

  Steps in the mechanism for the following reaction

Show all the steps in the mechanism for the following reaction, When benzene is mixed with deuterated sulfuric acid, deuterium is slowly incorporated onto the ring. Show the mechanism for this reaction and explain how this relates the sulfonation of ..

  Prior to placing piece of metal into the graduated cylinder

This assignment inhibits chemistry Laboratory Questions.

  Write the structures of the saytzeff elimination

Write the structures of the saytzeff elimination

  Calculate ph - chemistry questions

Chemistry Questions on Calculate P H

  How many mols of hydrogen can produce

how many mols of H 2 can produce

  Analysis of corrosion mechanisms

Analysis of corrosion mechanisms and preventative measures

  Chemical and pharmaceutical science

Write an equation for the formation of an acetal from reaction of excess methanol with benzaldehyde in the presence of an acid catalyst.

  Calculate the approximate sulphur

Calculate the approximate SO 2 mass emission in lb/day.

  What is the structure - stereochemistry

What is the structure (including functional groups)? Stereochemistry (racemic or single enantiomer)?

  Design a qualitative analysis scheme

Design a qualitative analysis scheme

  What will be the resultant pressure

What will be the resultant pressure when the stopcock is opened?

  The 1h nmr spectrum

Integrals for some of the resonances in the 1H NMR spectrum are higher than they should be due to the shear number of hydrogens in this compound

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