Lab 1 Ics3u Updated
Lab 1 Ics3u Updated
Instructions: To complete this lab, you will be required to apply your knowledge of the
programming concepts related to input, output, and math in Java.
Task: Write a program that prompts the user to enter their name. Then, ask the user for their
favorite integer number. Using this number, calculate the following:
1) The favorite number squared.
2) The square root of the favorite number
3) The favorite number times another randomly generated integer.
4) Another numeric calculation of your choosing involving the random number.
5) A second numeric calculation of your choosing involving the random number.
Display the calculations to the user in a well formatted table (using printf). Use ~**~ as formatting in the table titles.
Make sure that you meet the requirements listed in the Marking Scheme.
Each student will need to complete their own submission, but you can help each other out and work
together.
Note that you do not have to do the exact lab above for this
assignment. You can instead create a program of you own design that covers the same topics. I
will use the same marking scheme (found below) for everyone.
If you do decide to create something else, check with Mr. J-F first so we can make sure that it covers all
the topics and it not too large.
ICS3U Lab 1
Marking Scheme