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...
-
Refer to the IBM information in Exhibit 4-5. Compute the overall gross profit percentage for 2007, 2008, and 2009? In Exhibit 4-5 Consolldated statement of Earnings (USD $) In Millilons, except Share...
-
What are the advantages of partitioning a disk, rather than using the entire disk as one partition?
-
Show that during the early part of the electron-positron annihilation era, the ratio of the electron number density to the photon number density scaled with temperature as \[\frac{n_{-}}{n_{\gamma}}...
-
Cook Company estimates that 360,000 direct labor hours will be worked during the coming year, 2012, in the Packaging Department. On this basis, the budgeted manufacturing overhead cost data, shown on...
-
A combined solar and auxiliary energy system is used to meet the same load as in Example 12.5. The total cost of the system to cover 65% of the load (solar fraction) is $20,000. The owner will pay a...
-
A security pays $195.00 in one year and $190.00 in two years. The yield on the security is 4.20% (implying a market price of $362.13). If the first payment is reinvested at a rate of 5.20%, what is...
-
Two enterprises own 100% of the common stock of a VIE [A own 60%, B owns 40%]. Income is shared proportional to stock ownership. Each has 3 votes on a six person board. The board makes all decisions...
-
ProWasher is the defendant in a patent infringement lawsuit filed by Sue Case over ProWasher s use of a hydraulic compressor in several of its products. Anna Turney claims that, if the suit goes...
-
Debbie runs a business that sells cell phones. Debbie reports on the accrual basis for both tax and financial reporting. In Y1, her cell phone sales totaled $1,000,000. Several of Debbies customers...
-
Hunter (a 37% taxpayer) and Nan (a 25% taxpayer) form a partnership. Hunter contributes $16640 cash as partnership capital and receives 80% partnership interest. Nan contributes cash $4160 as...
-
Reflect on the last time you relied on other people's review of a product or experience before making a decision. How many reviews did you look at? What was your process for finding and vetting the...
-
The circuit consist of two parts that are connected by the depedent source. Apply KCL in the left part of the circuit and then apply KCL in the right part. 40 mA 215 mA 2502 50 2 V2 + Vs 25 mA...
-
The cash records of Holly Company show the following four situations. 1. The June 30 bank reconciliation indicated that deposits in transit total $720. During July, the general ledger account Cash...
-
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...
-
Given the following information, answer the questions about this project: a. Draw the network as a Gantt chart. b. What is the critical path? Which activities have slack time? c. What would happen if...
-
Develop a Gantt chart with the following information. What is the expected duration of the project? What is the critical path? Activity Expected Duration Predecessors A BL 12 8 None None C 5 None D...
-
Consider a project with the following information. Construct the project activity network using AOA methodology and label each node and arrow appropriately. Identify all dummy activities required to...
Study smarter with the SolutionInn App