Question: Learning Outcome(s): Question One Write a complete Java program that do the following: 1. Asks the user to enter his name and his student ID.

Learning Outcome(s): Question One Write a

Learning Outcome(s): Question One Write a complete Java program that do the following: 1. Asks the user to enter his name and his student ID. Explain the basic principles of programming, concept of language, and 2. Generates a password for the student based on his ID according to the following rules: 3 Marks ( ) a. The generated password is a number of 4 digits universal constructs b. The first digit (ones) is the first digit of your student ID. of programming languages. c. The second digit (tens) is the sum of the fourth and fifth digit of your student ID. If the sum is greater than 9 then consider the ones: for example, if the sum is equal to 17 then the second digit will be 7. d. The third digit (hundred) is the third digit of your student ID e. The fourth digit (thousand) is the second digit multiply by 4. If the value is greater than 9 then consider the ones: for example, if the value is equal to 24 then the fourth digit will be 4. 3. Prints a hello message with the student's name and the generated password. Typical runs of the program Bluel: Terminal Windo... X Options Blue): Terminal Windo... Options Please give your name Mohamed Please give your student id 123456789 Hello Mr. Mohamed Your password is: 2719 Please give your name Khaled Please give your student id 123482345 Hello Mr. Khaled Your password is: 6305 Can only enter Input while y Dan only enter thout while Bluel: Terminal Windo... . Options Please give your name Zina Please give your student id 987654321 Hello Mr. Zina Your password is: 8391 Can Only enter input while y Note: Your answer should have the code as text as well as the screenshot of the program output (using your own student ID as a part of your answer. Otherwise, zero marks will be awarded

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related General Management Questions!