Please do the readings from the book and also read this entire assignment before lab this week!
/*
Your Name
Your ID Number
Your Username
Which Assignment
Your Laboratory Section Number
*/
Fully document your code with meaningful comments. Use a consistent and readable indentation scheme. You will be graded on both the correctness of your programs and the style in which they are written.
This is not a test! If you have any trouble at all with these programs, your AI will be happy to help you!
We define broken pig-latin in the following way:
Any word, whether it starts with a vowel or otherwise, is converted to pig-latin by taking out the first character, attaching it at the end of the word, and then adding the suffix 'ay' to it. Here's a sample run.Give me a 4 word sentence: My name is Joe.
Piglatin sentence: yMay amenay siay oeJay.
Do not worry about what happens if the user enters a sentence with more than 4 words. You may assume that she will always enter 4.
You will need to make use of the substring method again in the String class. This method is described on page 68 of the text.
Save your program as Brokenpig.java.
Please take care to use the exact filenames specified in the problems below.
Give me a 4 word sentence: My name is Joe.
Piglatin sentence: Ymay amenay siay oejay.
Save your program as Smartpig.java.
Please enter the name of assignment due (Lab/quiz): Lab3
Please enter the date it is due:
Month: 2
Date: 10
Hour (in 24 hour format): 23
Minute:59
You have about 168 hours to finish this assignment! Keep it up!
Hint: remember that one hour has 3600 seconds. And remember integer division!
Name this program Deadline.java
For this lab, you must submit the in-lab exercise during your normally scheduled lab session. By Wednesday, February 10 at midninght you should submit these three files:
Do not submit .prj or .class files. Only the three files named above should be submitted.
In order to submit files, click on the following link to send mail to:
with the following Subject:
and then Attach your program files to the e-mail message. You may attach all three files in the same message, but you don't have to. You can submit your programs in separate e-mails if you wish. Do not type anything in the body of the message! You must use the filenames specified in this assignment and you must attach the files to the mail message.