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...
-
If A and B are both mutually exclusive and independent, then at least one of P(A) or P(B) must be zero. Assume A and B are events such that 0 < P(A) < 1 and 0 < P(B) < 1. Is this true or false?
-
A \($1\),100-face-value bond has a 5% coupon rate, its current price is \($1\),040, and it is expected to increase to \($1070\) next year. Calculate the current yield, the expected rate of capital...
-
\(45-6 \times 7^{3}\) Perform the indicated calculation.
-
Sales mix, two products. The Stackpole Company retails two products: a standard and a deluxe version of a luggage carrier. The budgeted income statement for next period is as follows: Required1....
-
Explain it clearly and need only typed answers Thank you. A firm evaluates all of its projects by applying the NPV decision rule. A project under consideration has the following cash flows: Year Cash...
-
Student researchers at Hope College conducted an experiment to determine whether students memorize material better if they are taking notes on paper using handwriting as opposed to taking notes on a...
-
Given the below Function: F(x, y, z) = (x + y). (y +z) + xyz a- Draw the combinational circuit that directly implements the above Boolean expression. b- For what values of x, y, and z the output (F)...
-
Identify a product where it would be effective to advertise using each media and a product where this media form would be ineffective. Note: this means you would have 14 different products with 2 for...
-
Nicole Plastics company uses a job order costing system to account for its production costs. During the current period 1,000 chairs were molded and assembled on Job No. 453. The total cost incurred...
-
You are the auditor of LKFG LLC. You audited the accounts receivables using a well designed sample (using non-statistical sampling as given below) and came up with the following results You set the...
-
A compressed-air storage system uses excess electricity to power a compressor that fills a tank with pressurized air. The tank has a volume of 100 m and initially holds ambient air (290 K, 1 bar)....
-
How did Darlene manage to survive? Was it due to her ability to conserve her body water, or did she somehow gain access to a meager supply of water while still buried?
-
There is a new trend in corporate America to establish a new position in the company. With the ever-increasing regulations of Sarbanes-Oxley, some companies have started the position of Corporate...
-
Briefly describe the following types of group life insurance plans: a. Group term life insurance b. Group accidental death and dismemberment insurance (AD&D) c. Group universal life insurance d....
-
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...
-
On December 31, 2020, Mainstreet Inc. has a \$100,000 note payable due on demand or on June 30, 2025, whichever is earlier, to First Bank. The repayment of the note by First Bank is not expected at...
-
Finisher Inc. sells merchandise of \(\$ 250,000\) in 2020 that includes a three-year limited warranty. Warranty costs are estimated to be \(1 \%\) of sales. The company incurred actual costs of \(\$...
-
Pitt Company is the defendant in a lawsuit filed by Hoffman in 2020 disputing the validity of a copyright held by Pitt. At December 31, 2020, Pitt determined that Hoffman would probably be successful...
Study smarter with the SolutionInn App