What to hand in: For the programming question, upload .java file to your Canvas account (don't...
Fantastic news! We've Found the answer you've been seeking!
Question:
Transcribed Image Text:
What to hand in: For the programming question, upload .java file to your Canvas account (don't upload .code file). The rubric has been posted to the course website. Programming Task - 100 points This programming task is very, very similar to the code that you wrote, compiled, and executed in the first lab. Refer to that lab for clues. Look over the lecture slides for significant hints as well. The goal of this programming task is for you to gain more practice in writing java code and using jGRASP. 1. 2. 3. Create the folder HW1 in your cs110Submissions folder on your CWU N drive or your home computer. Use that location to work on your code. However, the final submission should be in Canvas (see step 7). Use jGRASP and create a new java file, and name it TodayIs.java. Save it in your HW1 folder. As was shown and discussed in lecture, the structure of your java files for the first part of CS110 should follow the same pattern, namely: public class Today Is { public static void main (String args[]) { } // your code goes here 4. 5. Add comments throughout your code. For example, be sure to include your name and date in a comment at the top of your java file, as was shown in the HelloWorld.java code in lab 1. Inside of the main routine in your java file, declare two variables. Both should be of type int (integer); you decide the names for the variables: The first variable should hold an integer that represents what day of the month is today (8 is used in the example below, but you can change it). The second variable should hold an integer that represents the month of the year for October. CS110, Tatiana Harrison, CWU, HW 1: Introductions Page 1 of 2 After declaring the two variables, invoke the println method three times: Page 1 of 2 • The argument for the first println method should be the words "The month is October". • The argument for the second print in method should be the words "October is month number ว ZOOM + After declaring the two variables, invoke the println method three times: • The argument for the first println method should be the words "The month is October". 6. • . The argument for the second print in method should be the words "October is month number "with the value stored in the second variable appended to it. The argument to the third println should be the words "Today is the "with the value of the first variable appended to it and “th day of the month." further appended to it. Compile your program. If your code has syntax errors, fix them until your program compiles. The goal output of your program is the following: The month is October October is month number 10 Today is the 8th day of the month 7. Upload your.java file to Canvas; an assignment has been created especially for it. RUBRIC Item code is commented, along with your name and date at the top of the java file, code is properly formatted 2 variables declared and initialized 3 uses of printin 3rd printin has 3 components program compiles and has correct output Total Points Available 25 20 15 15 25 100 Page 2 of 2 ว ZOOM + What to hand in: For the programming question, upload .java file to your Canvas account (don't upload .code file). The rubric has been posted to the course website. Programming Task - 100 points This programming task is very, very similar to the code that you wrote, compiled, and executed in the first lab. Refer to that lab for clues. Look over the lecture slides for significant hints as well. The goal of this programming task is for you to gain more practice in writing java code and using jGRASP. 1. 2. 3. Create the folder HW1 in your cs110Submissions folder on your CWU N drive or your home computer. Use that location to work on your code. However, the final submission should be in Canvas (see step 7). Use jGRASP and create a new java file, and name it TodayIs.java. Save it in your HW1 folder. As was shown and discussed in lecture, the structure of your java files for the first part of CS110 should follow the same pattern, namely: public class Today Is { public static void main (String args[]) { } // your code goes here 4. 5. Add comments throughout your code. For example, be sure to include your name and date in a comment at the top of your java file, as was shown in the HelloWorld.java code in lab 1. Inside of the main routine in your java file, declare two variables. Both should be of type int (integer); you decide the names for the variables: The first variable should hold an integer that represents what day of the month is today (8 is used in the example below, but you can change it). The second variable should hold an integer that represents the month of the year for October. CS110, Tatiana Harrison, CWU, HW 1: Introductions Page 1 of 2 After declaring the two variables, invoke the println method three times: Page 1 of 2 • The argument for the first println method should be the words "The month is October". • The argument for the second print in method should be the words "October is month number ว ZOOM + After declaring the two variables, invoke the println method three times: • The argument for the first println method should be the words "The month is October". 6. • . The argument for the second print in method should be the words "October is month number "with the value stored in the second variable appended to it. The argument to the third println should be the words "Today is the "with the value of the first variable appended to it and “th day of the month." further appended to it. Compile your program. If your code has syntax errors, fix them until your program compiles. The goal output of your program is the following: The month is October October is month number 10 Today is the 8th day of the month 7. Upload your.java file to Canvas; an assignment has been created especially for it. RUBRIC Item code is commented, along with your name and date at the top of the java file, code is properly formatted 2 variables declared and initialized 3 uses of printin 3rd printin has 3 components program compiles and has correct output Total Points Available 25 20 15 15 25 100 Page 2 of 2 ว ZOOM +
Expert Answer:
Answer rating: 100% (QA)
Heres a breakdown of what you need to do Create Folder and Java File Create a folder named HW1 in your designated directory Within the HW1 folder crea... View the full answer
Related Book For
Income Tax Fundamentals 2013
ISBN: 9781285586618
31st Edition
Authors: Gerald E. Whittenburg, Martha Altus Buller, Steven L Gill
Posted Date:
Students also viewed these programming questions
-
answer all questions as instructed below. attend all questions. 4 Computer Vision (a) Explain why such a tiny number of 2D Gabor wavelets as shown in this sequence are so efficient at representing...
-
"One need not be concerned with reliability and validity in applied marketing research." Discuss this statement as a small group.
-
Minnesota Office Products (MOP) produces three different paper products at its Vaasa lumber plant: Supreme, Deluxe, and Regular. Each product has its own dedicated production line at the plant. It...
-
While above water, a swimmers eyes are focused on a nearby boat. When the swimmer submerges, the underwater part of the boat will not be in focus even though it is the same distance away and the...
-
Do the following activities to complete your marketing plan: 1. Draw a simple organizational chart for your organization. 2. Develop a Gantt chart (see Chapter 2) to schedule the key activities...
-
Data related to the acquisition of timber rights and intangible assets during the current year ended December 31 are as follows: a. Timber rights on a tract of land were purchased for $864,000 on...
-
What should you do if you are on the coast and hear a tsunami siren?
-
Direct labor-hours Machine-hours Total fixed manufacturing overhead cost Variable manufacturing overhead per machine-hour Variable manufacturing overhead per direct labor-hour Required: 1. Compute...
-
How to perform the preparation technique for recipe of Marinated kangaroo fillet?
-
Can you elucidate the integration of advanced remote sensing technologies and real-time data analytics in facilitating situational awareness and enhancing the efficiency of recovery operations in...
-
What is the net cash increase ALL-STAR AUTOMOTIVE COMPANY Statement of Cash Flows For the Year Ended December 31, Year 2 Cash flows from operating activities: Cash receipts from revenue $25,000 Cash...
-
To make sure immunisations records are up-to-date, education and care services must obtain a copy of the child's immunisation record during enrolment and request a new copy each year. List four (4)...
-
In this experiment, electrons are "boiled" off of a hot piece of metal (filament). They are then accelerated up to speed using a potential difference AV. After they are accelerated, they enter a...
-
If (5 222) < f() < (5 a?)i for -1
-
The diameter of a sphere is 18 in. Find the largest volume of regular pyramid of altitude 15 in. that can be cut from the sphere if the pyramid is (a) square, (b) pentagonal, (c) hexagonal, and (d)...
-
Sophie is a single taxpayer. For the first payroll period in October 2012, she is paid wages of $3,250 monthly. Sophie claims three allowances on her Form W-4. a. Use the percentage method to...
-
The following additional information is available for the Dr. Ivan and Irene Incisor family from Chapters 1-6. On December 12, Irene purchased the building where her store is located. She paid...
-
Scott Butterfield is self-employed as a CPA. He uses the cash method of accounting, and his Social Security number is 644-47-7833. His principal business code is 541211. Scott's CPA practice is...
-
What are the Returns and Risks currently for the different asset classes?
-
What is the P(Gain) for each?
-
What does the time series state when graphing from the Financial Crisis to the current day for each of the asset classes?
Study smarter with the SolutionInn App