Create a Assign To A Group application that prompts the user for his or her first...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
Create a Assign To A Group application that prompts the user for his or her first and last name and then displays a group assignment. The program will keep looping until -2 is entered to quit. The group assignment depends on the first letter of the student's last name. A through I are assigned to Group 1 J through S are assigned to Group 2 T through Z are assigned to Group 3 Input validation should catch the following: If no characters have been entered re-prompt the user for a name. trim the name entered to remove extra spaces removed. If only one name has been entered re-prompt the user for a first name and last name. Handle if the last name first letter is written as a lowercase or uppercase letter. Application output should look similar to: Enter your name or (-2 to quit): Jane Smith Jane Smith is assigned to group 2. Enter your name or (-2 to quit): Adam Adamson Adam Adamson is assigned to group 1. Enter your name or (-2 to quit): -2 Goodbye Create a Assign To A Group application that prompts the user for his or her first and last name and then displays a group assignment. The program will keep looping until -2 is entered to quit. The group assignment depends on the first letter of the student's last name. A through I are assigned to Group 1 J through S are assigned to Group 2 T through Z are assigned to Group 3 Input validation should catch the following: If no characters have been entered re-prompt the user for a name. trim the name entered to remove extra spaces removed. If only one name has been entered re-prompt the user for a first name and last name. Handle if the last name first letter is written as a lowercase or uppercase letter. Application output should look similar to: Enter your name or (-2 to quit): Jane Smith Jane Smith is assigned to group 2. Enter your name or (-2 to quit): Adam Adamson Adam Adamson is assigned to group 1. Enter your name or (-2 to quit): -2 Goodbye
Expert Answer:
Related Book For
Posted Date:
Students also viewed these databases questions
-
please make your Terminal window larger by resizing the window if you have not already done so so that we capture as much as possible (drag lower right corner with your mouse). Again note you may not...
-
The TTL field refers to the maximum amount of time a DNS server can cache the record. Most of the TTLs in this record were chosen to be 86400 seconds (1 day). What is the trade-off between choosing a...
-
As a result of the recent mortgage crisis, many banks reported record losses to their mortgage receivables and other assets based on the decline in these assets fair values. Requirements 1. What...
-
Apple Inc. is one of the country's most successful computer technology companies. The company designs, manufactures, and sells computers, digital music devices, communication devices, and various...
-
Ms. Xie, who is in the 37 percent tax bracket, is the sole shareholder and president of Xenon. The corporations financial records show the following. Gross income from sales of goods...
-
How do you think the state level Net Neutrality regulations are going to impact ISPs?
-
Mandy Knox is the new manager of the materials storeroom for Timken Manufacturing. Mandy has been asked to estimate future monthly purchase costs for part # 696, used in two of Timkens products....
-
Kookie, a resident of and working in Manila, filed his income tax return and paid the tax or taxable year 2021 on June 15, 2022 in Naga City. If the amount of tax shown thereon is PHP 12,000, What...
-
Beth and Kate are in partnership. Their financial year ends on 31 December. On 1 January 205 their capitals were: Beth $90,000 and Kate $70,000. The uncompleted current accounts for the year ended 31...
-
Explain Legal risks and foreign exchange risks with an example of each
-
QUESTION 1 (70 marks) The Lion Group of companies is listed on the JSE. They are a diverse group of companies situated all over Africa. The financial year-end of the Lion Group is 31 December. The...
-
(Binomial model, 23') Consider a European call option with a maturity of 6 months and a strike of $41. The current spot stock price is $40. Consider a two-period binomial model. The stock has annual...
-
1. A machine is purchased on 1 April 2 0 2 0 at a cost of R 1 0 0 0 . For the year ending 3 1 March 2 0 2 1 , the depreciation expense amcurst to 8 2 0 0 and tax allowwances amount to ???? 3 0 0 ....
-
QUESTION 4 REQUIRED Use the information provided below to prepare the Cash Flow Statement of Nascar Limited for the year ended 31 December 2021. INFORMATION The following Information was extracted...
-
CASH FLOW EXERCISE Balance sheet, income statement and cash flow. The Statement of financial position of YYY for 2018 is the following: Assets Equity Non-current assets 160 Equipment 200 (Accumulated...
-
An upward-sloping demand curve doesnt make sense in my business. All I know is that if I raise my prices, revenue doesnt go up, it goes down. I dont sell more products, I sell less. Can you...
-
White Bolder Investments (WBI) You are an intern working for WBI, a large investment advisory services in Sydney. Among other regular customers, WBI has been providing advisory services for Jumbo...
-
In each case, determine the problem and fix the program. After you correct the errors, save each file using the same filename preceded with Fix. For example, DebugNine1.java will become...
-
An abstract class Dwelling has two subclasses, SingleFamily and MultiFamily. None of the constructors for these classes requires any arguments. Which of the following statements is legal? a. Dwelling...
-
Meadowdale Dairy Farm sells organic brown eggs to local customers. It charges $3.25 for a dozen eggs, or 45 cents for individual eggs that are not part of a dozen. Write a program that prompts a user...
-
The tube is subjected to a torque of 750 N. m. Determine the amount of this torque that is resisted by the gray shaded section. Solve the problem two ways: (a) by using the torsion formula, (b) by...
-
The solid shaft has a diameter of 0.75 in. If it is subjected to the torques shown, determine the maximum shear stress developed in regions BC and DE of the shaft. The bearings at A and F allow free...
-
The solid shaft has a diameter of 0.75 in. If it is subjected to the torques shown, determine the maximum shear stress developed in regions CD and EF of the shaft. The bearings at A and F allow free...
Study smarter with the SolutionInn App