Programming Questions

Programming Questions

Instructions:

1. Write a source code. Your posting must include the source code along with explanations of how you have solved the problem.

2. You must include an algorithm in Javadoc comments at the beginning of your program.

3. You need to use Javadoc comments in your programs as required. Javadoc comments use /** … */ to encapsulate the comments. The second * is important! For Javadoc comments, see https://www.tutorialspoint.com/java/java_documentation for examples of how to use them. At the beginning of your program include Javadoc tags: @author, @version, and @since. For the methods you should use @param, @return, @exception, and @see. You may also use other javadoc tags. See also the announcement CSC201 Javadoc Comments and Tags, 3/14/2018 for instructions.

3. You should include the following in the javadoc comments in each of your programs:

  • name of your program
  • description of your program
  • algorithm in pseudocode
  • javadoc tags: @author, @version, and @since at the beginning of your program.

Note that for your methods, you should use @param, @return, @exception, and @see

_____________________________________________________________________________________

1.) (Game: pick a card) Write a program that simulates picking a card from a deck of 52 cards. Your program should display the rank (Ace, 2,3,4,5,6,7,8,9,10, Jack, Queen, King) and suit (Clubs, Diamonds, Hearts, Spades) of the card.

2.) (Sort Students) Write a program that prompts the user to enter the number of students, the students’ names, and their scores and prints student names in decreasing order of their scores. Assume the name is a string without spaces, use the Scanner’s next() method to read a name

3.) (Use the Date class) rite a program that creates a Date object, sets its elapsed time to 10000, 10000, 1000000, 10000000, 100000000, 1000000000, 10000000000, 100000000000, and displays the date and time using the toString() method, respectively.

"You need a similar assignment done from scratch? Our qualified writers will help you with a guaranteed AI-free & plagiarism-free A+ quality paper, Confidentiality, Timely delivery & Livechat/phone Support.


Discount Code: CIPD30



Click ORDER NOW..

order custom paper