3.27 LAB: Login name Write a program that creates a login name for a user, given...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
3.27 LAB: Login name Write a program that creates a login name for a user, given the user's first name, last name, and a four-digit integer as input. Output the login name, which is made up of the first six letters of the first name, followed by the first letter of the last name, an underscore (_), and then the last digit of the number (use the % operator). If the first name has less than six letters, then use all letters of the first name. Ex: If the input is: Michael Jordan 1991 the output is: Your login name: MichaeJ 1 Ex: If the input is: Nicole Smith 2024 the output is: Your login name: NicoleS_4 503372.3776480.qx3zqy7 LAB ACTIVITY 3.27.1: LAB: Login name 1 import java.util.Scanner; LabProgram.java 0/10 Load default template... 3.27 LAB: Login name Write a program that creates a login name for a user, given the user's first name, last name, and a four-digit integer as input. Output the login name, which is made up of the first six letters of the first name, followed by the first letter of the last name, an underscore (_), and then the last digit of the number (use the % operator). If the first name has less than six letters, then use all letters of the first name. Ex: If the input is: Michael Jordan 1991 the output is: Your login name: MichaeJ 1 Ex: If the input is: Nicole Smith 2024 the output is: Your login name: NicoleS_4 503372.3776480.qx3zqy7 LAB ACTIVITY 3.27.1: LAB: Login name 1 import java.util.Scanner; LabProgram.java 0/10 Load default template...
Expert Answer:
Answer rating: 100% (QA)
1 Create a new Java class called LabProgram in the default package 2 In the LabProgram class define ... View the full answer
Related Book For
Posted Date:
Students also viewed these programming questions
-
Suppose we have a relation R(A,B,C,D,E,F). Below are the FDs: A,C B,D,F F E Which normal form is the relation R in?
-
Find an application of OLAP (online analytical processing) for FIU. How can FIU use multidimensional analytical queries to generate BI? Some examples?
-
Transform the E-R model of project2 into a relational model. TransactionNo Date Hired Education Employee Address NumberOfItems Email 100 MemberD Name Transaction D Member TypeName Member Classify...
-
Solve the right triangles with the given parts or state that there is not enough information to solve. Round off results according to Table 4.1. Refer to Fig. 4.37. B = 32.1, c = 238 Data from Table...
-
For what types of entities does the OS maintain tables of information for management purposes?
-
Balance the following equations using the method outlined in Section 3.7: (a) C + O2 CO (b) CO + O2 CO2 (c) C1 + Br2 HBr (d) K + C1O KOH + C1 (e) Mg + O2 MgO (f) O3 O2 (g) C1O2 C1O + O2 (h) N2 + C1...
-
Trial weight runs have been completed, and the final weight calls for approximately 150 g. Using -inch plate steel, what size piece should be cut if a -inch welding rod is to be used for attaching...
-
Indicate whether the following statements about the conceptual framework are true or false. If false, provide a brief explanation supporting your position. (a) Accounting rule-making that relies on a...
-
You think the political solutions presented by the author are still valid or are other strategies required? "A System at Risk is a comprehensive analysis of the transportation dilemma in the United...
-
On May 1, a petty cash fund was established for $150.00. The following vouchers were issued during May: REQUIRED 1. Prepare the journal entry to establish the petty cash fund. 2. Record the vouchers...
-
Required: 1. Prepare a schedule of cost of goods manufactured for 20x1.
-
Go online and identify two (2) business - to - business (b2b) companies /organizations that are using social media tools to promote their business . For each situation , describe the social media...
-
How to compute the question please? Thanks! 3. [5 points] Given 2 investments Year 0 1 2 3 Investment 1 -$1,000 $100 $100 $1,100 Investment 2 -$1,000 $50 $250 $1,000 What is discount rate such that...
-
Business proposal to Sears board of directors to revitalize the organization through some well-thought-out, innovative strategies. Your proposal should include the following: An analysis of the...
-
How do resistance movements, anti-globalization protests, and grassroots initiatives challenge dominant narratives of globalization and advocate for alternative visions of global justice, solidarity,...
-
Which of the following explains the mechanism of inhalation? An increase in temperature inside the lungs allows for more oxygen to enter the lungs. An increase in atmospheric pressure creates a...
-
a a 5 a Det [ ]=-6. Det [1] = -2, and Det [5] = 7. 6, c d C C 0 Suppose Det a 5+b Det [14] C + d a 0 Det [*]- c 1 = =
-
Repeat Exercise 16.6 using the t-test of the coefficient of correlation. Is this result identical to the one you produced in Exercise 16.6?
-
Sammys Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrellas to tourists. Write a program that displays Sammys motto, which is Sammys makes it fun in the sun....
-
Write an application that uses a loop to create the pattern of Os shown in Figure 6-32, in which each O is displayed one additional space to the right. Save the file as DiagonalOs.java.
-
If you include three statements in a try block and follow the block with three Catch blocks, and the second statement in the try block throws an exception, Then___________. A. The first catch block...
-
Determine whether each of the following statements is true or false: Management accountants often work in cross-functional teams throughout the organization.
-
Determine whether each of the following statements is true or false: The internal audit function reports to the audit committee of the board of directors.
-
Determine whether each of the following statements is true or false: Management accountants are now more often looked upon as internal business advisors rather than bean counters recording historical...
Study smarter with the SolutionInn App