Write a program that would read a list of N names from the user and allow...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Write a program that would read a list of N names from the user and allow him/her to print them out, sorted in ascending or descending order. The following options should be given to the user: 1. 2. 3. 4. 5. 6. Enter the number of names Enter Names Print names as entered by the user Print names in ascending order Print names in descending order Quit Notice that you have to validate the user's input and print appropriate error messages where applicable. Activate Windows Write a program that would read a list of N names from the user and allow him/her to print them out, sorted in ascending or descending order. The following options should be given to the user: 1. 2. 3. 4. 5. 6. Enter the number of names Enter Names Print names as entered by the user Print names in ascending order Print names in descending order Quit Notice that you have to validate the user's input and print appropriate error messages where applicable. Activate Windows
Expert Answer:
Related Book For
Posted Date:
Students also viewed these programming questions
-
You are required to write a Python program that will manage character (heroes and villain) information. Character (hero and villain) information will be stored in a text file that will be read in...
-
Two-dimensional array operations: Movie Ratings program ** You have recently collected reviews from four movie reviewers where the reviewers are numbered 1-4. Each reviewer has rated six movies where...
-
Consider the following multiplicative demand function where QD = quantity demanded, P = selling price, and I = disposable income: QD = 1.6 P -1.5 Y .2 QD = 1.6 P ^-1.5y.2 The coefficient of I...
-
Assess the key differences between U.S. GAAP and IFRS' positions on research and development cost, indicating which of the two you believe provides the most detailed and accurate financial...
-
Omar, who is single, sold his principal residence on April 10, 2021, and excluded the realized gain under 121 (exclusion on the sale of a principal residence). On April 12, 2021, he purchased...
-
A long straight wire carries a current of magnitude \(I\). Use the Biot-Savart law to derive an expression for the mag. netic field \(\vec{B}\) produced at point \(\mathrm{P}\) a radial distance...
-
Battonkill Company, operating at full capacity, sold 112,800 units at a price of $150 per unit during 2010. Its income statement for 2010 is as follows: The division of costs between fixed and...
-
6. To a ground observer the block C is moving with v, and the block A with v. B is moving with v relative to C as shown in the figure. Identify the correct statement. (a) V-V =Vo (b)= A C B (c) V+V =...
-
Lunatics, an e-commerce sports company wants to buy Rowdy Trading Cards at a cost of $504 million. Rowdy will operate for 20 years. They expect annual cash flows from operations to be $70.1 million...
-
Application Question(s) Project Description in this grop project, de will work in groups of the problems The goal is to develop a simple as pplicat that ang abs and Project Problem Statement Create a...
-
After implementing the talent management model in an organization to make the hiring process more effective, what is the Post Implementation Support: (e.g. Field Support) - (What processes, tools,...
-
analyze the decision making issue for a company pursuing a new vision as a context and address the following elements: Describe the issue as it relates to that company. Use specifics to provide the...
-
Does LVMH pay much attention to cross-cultural differences in its international assignments? What should it do to better prepare its expatriates for adjustment in the host country they are sent to?
-
Part 2 Project network/schedule -scheduling and compressing a schedule (30 points) You've been asked to manage a project that includes conducting a two-week (10 working days) computer training class....
-
Which type of determinism as discussed in the screencast is most responsible for determining what happens to us in our lives? Provide at least two specific examples of this type of determinism and...
-
1. Among various preventive controls for information security, it is believed that the people component is the most important. Please explain your argument on this issue. 2. Why does the company need...
-
MgO prevents premature evaporation of Al in a furnace by maintaining the aluminum as Al2O3. Another type of matrix modifier prevents loss of signal from the atom X that readily forms the molecular...
-
For the following exercises, set up the augmented matrix that describes the situation, and solve for the desired solution. You invested $10,000 into two accounts: one that has simple 3% interest, the...
-
Terry is skiing down a steep hill. Terrys elevation, E(t), in feet after t seconds is given by E(t) = 3000 70t. Write a complete sentence describing Terrys starting elevation and how it is changing...
-
When solving a trigonometric equation involving more than one trig function, do we always want to try to rewrite the equation so it is expressed in terms of one trigonometric function? Why or why not?
-
Management is considering three alternatives to satisfy an urgent need. Each of the alternatives will completely satisfy the need, so no combinations have to be considered. The first costs, operating...
-
Consider the following cash flow profile, and assume MARR is 10 percent/year and the finance rate is 4 percent/year. a. Determine the MIRR for this project. b. Is this project economically...
-
Consider the following cash flow profile and assume MARR is 10 percent/year and the finance rate is 4 percent/ year. a. Determine the MIRR for this project. b. Is this project economically...
Study smarter with the SolutionInn App