Cash-back offer from May 7th to 12th, 2024: Get a flat 10% cash-back credited to your account for a minimum transaction of $50.Post Your Questions Today!

Question DetailsNormal
$ 12.00

Unit 5 Assignment | Complete Solution

Question posted by
Online Tutor Profile
request

Unit 5 Assignment


Grading Information: This Program is due on Date Specified.
Comments are REQUIRED;; flow charts and pseudocode are NOT REQUIRED.
Directions Points
The file must be called <LastInitialFirstInitialUnit5.java>
Proper coding conventions required the first letter of the class start with a capital
letter and the first letter of each additional word start with a capital letter.
Only submit the .java file needed to make the program run. Do not submit the .class
file or any other file.
5%
Style Components
Include properly formatted prologue, comments, indenting, and other style elements
as shown in Chapter 2 starting page 64 and Appendix 5 page 881-­892.
5%
Topics covered in chapter
Topics with * are covered in this assignment. Ensure you use every item listed below with
an * in your completed assignment.
*The API Library
*Match Class
*Wrapper Classes for Primitive Types
Character Class
*String Methods
*Formatted Output with the printf Method
*Problem Solving with Random Numbers
LiFiUnit5.java -­ Main Method
• Get input for maximum random number into a String variable. Allow a
maximum of 8 (see example).
• Use the Integer wrapper class to parse the integer out of the string and store
in an integer variable.
• Get input for number of rounds into an integer. Allow a maximum of 8 (see
example).
• Create a Header and Data format string to output results as shown in the
sample at the bottom.
• Utilizing a for loop, output results meeting following criteria:
o One line should be output for each round.
90%
o Each line should contain:
§ Round Number.
§ Random number chosen.
§ The random number raised to the round number.
• Utilize Math class to calculate using exponents.
• Example: Round 2 random number 6 = 62 = 36
§ The modulus of the random number % round.
• Modulus returns the remainder, see page 81 in Chapter 3.
• Example: 8%3 = 2 (2 is the remainder or modulus)
§ The random number divided by the round number.
• Ensure you output the result as a float with 2 decimal
places.
• Output “End Run…” after all lines have been output.
Mimic the output in the sample below exactly. Numbers will change due to random
and selection but format will be the same.
Sample output is provided below. Be sure to mimic the layout exactly. Output will
vary based on input. 10%
NOTE: Complete your activity and submit it by clicking “Submit Assignment”
Total Percentage 100%
Sample
Max Random Number and Number of Rounds will vary based on
input:
Below are 3 different random examples based on the input
given. Your output will vary but the format will be the same.
Sample when 8 and 8 are entered.
Max random and number of rounds both entered with values above
 

Available Answer
$ 12.00

[Solved] Unit 5 Assignment | Complete Solution

  • This solution is not purchased yet.
  • Submitted On 10 Jul, 2016 05:02:46
Answer posted by
Online Tutor Profile
solution
import java.util.Scanner; public class LastInitialFirstInitialUnit5 { public static void main(String[...
Buy now to view the complete solution
Other Similar Questions
User Profile
Jose

CIS 305 Unit 5 DisscussionUnit 5 Assignment: Troubleshooting an Infrastructure Service

A step by step troubleshooting guide to resolve potential issues with your service...
User Profile
homew...

CIS 223 UNIT 5 ASSIGNMENT

10. Describe the different types of database requests and transactions.Database request are single occurrences where information is requested and a transactions is created when there are more than one database request. There ...
User Profile
Tutor...

LETRS Unit 5/ LETRS Unit 5 Assessment/ LETRS Unit 5 Final Assessment Correct Answers Verified

LETRS Unit 5/ LETRS Unit 5 Assessment/ LETRS Unit 5 Final Assessment Correct Answers Verified Which term relates to a students ability to use word meanings in both speaking and writing? {{Ans- expressive In teaching the a...
User Profile
termp...

IT332_Unit_5_Assignment.docx(1) IT 332 Unit 5 Assignment Purdue Global University IT

IT332_Unit_5_Assignment.docx(1) IT 332 Unit 5 Assignment Purdue Global University IT 332 Principle of Information Systems Architecture Computer clustering is like a one powerful system in which helps connect many compu...
User Profile
termp...

IT332_Unit5_Assignment.docx Unit 5 Assignment Purdue Global University IT332 â Prin

IT332_Unit5_Assignment.docx Unit 5 Assignment Purdue Global University IT332 – Principles of Information Architecture Introduction A Cluster is where a group of computers that are loosely coupled together can wo...

The benefits of buying study notes from CourseMerits

homeworkhelptime
Assurance Of Timely Delivery
We value your patience, and to ensure you always receive your homework help within the promised time, our dedicated team of tutors begins their work as soon as the request arrives.
tutoring
Best Price In The Market
All the services that are available on our page cost only a nominal amount of money. In fact, the prices are lower than the industry standards. You can always expect value for money from us.
tutorsupport
Uninterrupted 24/7 Support
Our customer support wing remains online 24x7 to provide you seamless assistance. Also, when you post a query or a request here, you can expect an immediate response from our side.
closebutton

$ 629.35