0% found this document useful (0 votes)
10 views2 pages

Lab 1 Ics3u Updated

The document outlines the instructions for ICS3U Lab 1, where students must write a Java program that prompts for their name and favorite integer, then performs various calculations with that number. It includes a marking scheme that evaluates the use of data types, user input, formatting, and code organization. An optional challenge suggests incorporating advanced features like loops or conditionals.

Uploaded by

anisamalik08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
10 views2 pages

Lab 1 Ics3u Updated

The document outlines the instructions for ICS3U Lab 1, where students must write a Java program that prompts for their name and favorite integer, then performs various calculations with that number. It includes a marking scheme that evaluates the use of data types, user input, formatting, and code organization. An optional challenge suggests incorporating advanced features like loops or conditionals.

Uploaded by

anisamalik08
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 2

ICS3U Lab 1

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 all answers are rounded to at most 2 decimal places.


Don’t forget your header!

Make sure that you meet the requirements listed in the Marking Scheme.

Optional Additional Challenge After Completing:


Try incorporating more advanced features (like loops or if statements). Though we haven’t covered these
features yet, we will be soon!
Example Output

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

Success Criteria Marks (KCAT) Checklist


You show effective, useful, appropriate and thoughtful use of this
skill or concept.
I have used at least three different data types. /3 3
(Eg. String, int, Boolean, double, char, etc….) Knowledge
I have used a Scanner to accept user input, and 2
successfully use that input in the program. /2
Knowledge
I have used printf, including the use of at least 2
two formatting features. (see the printf guide on /2
D2L for more details). Knowledge
I have used Dialog Boxes (popups). These could /2 2
be used for input or output. Knowledge
I have followed our commenting practices and /2 2
commented my code so that each section of code Communication
is labeled.
My code, input and output are all well formatted /2 2
and easy to read/follow. Communication
I have included a header. /2 2
Communication
I have met the requirements listed in the “task”, /3 3
and has no bugs. Application
We have completed a success criteria reflection /2 2
and included it as part of our submission. Thinking
Total /20

You might also like