Week 1 – Variables and Output

Week 1 – Variables and Output

Part1) Write a Java program which assigns your name to one variable and some other numerical value you want to share to another variable (e.g. age, number of pets,  number of children, etc.). Then print a greeting along with the value of the name variable to the screen on one line and a message that uses the other variable with numerical value to another line.

For example, my program would be:

Hello class, my name is: Dr. Mcfadden
I have visited 20 states

Submit your program as an attached  .java file and post a screen shot to show that you have been able to successfully run that program. Make sure you submission adheres to the SubmissionRequirements document.

Be sure to create a program different from any of the programs already posted by your classmates or the examples in class materials.

Part2) Reply to another student’s post. Modify the student’s program to add a reply using one or more variables and print statement(s) to the output. Submit a screen shot of the execution of the modified code.

Reply to a post which does not have a reply yet or provide a different version of the code.

"Get Help With Your Essay
. If you need assistance with writing your essay, our professional essay writing service is here to help!

Order Now