SE 2811, Hasker's Section, Exercise 2
esubmit

10 Points

Write a Java class Exercise2 that prompts for an integer and prints the number to the fourth power. A sample run is to be

Enter an integer: 3
3 ** 4 = 81
where the user enters just the 3. For full credit, you must not use Math.pow because it is a very inefficient way to raise numbers to the power of small integers. Simply multiply the number by itself the right number of times.

Part of this exercise is using the assignment submittal tool at https://esubmit.msoe.edu/. To access it, you must either be on campus or logged in to the campus VPN; see here for directions.

Once you are connected,

  1. Visit https://esubmit.msoe.edu/
  2. Enter your campus username (without the @msoe.edu) and your standard password.
  3. On your home page, click on the name of the assignment, ex2.
  4. On the assignment page, click on the Submit button.
  5. Use the Choose File button to select your solution and click on Submit.
After a few seconds there will be two boxes. The first shows the output of compiling your code. It should have just the javac compilation line; if there's other text then your code had a compilation error. The second box shows any differences between your output and the expected output. Ideally this should be empty, but if you're seeing the right output just formatted differently, you can still get partial credit. Common formatting errors include printing a newline after the prompt for an integer or not printing a newline after printing the result (the 81 above).

You can resubmit as many times as you like. We will grade just your final submission. If you have troubles submitting your code by the due date, do email the code to your instructor and explain what your problem is. But the expectation is that you will submit via esubmit, and your instructor is likely to respond by asking you to show them what happens when you try to use esubmit.

Your solution to this exercise (unlike labs) will be graded for correctness only. Documentation and style will not be graded. Submit your own solution, but feel free to talk to other students for this exercise (only!) if you are having problems.

Pay close attention to how your instructor asks you to submit your solutions. Generally you will submit code here and not submit any code to Canvas; your instructor will be able to grade your solution on the esubmit site. But there are cases in which students are asked to submit Zip files, documents, and/or paper printouts, and these are needed because different instructors have different grading workflows. Read submission requirements twice, and ask if there are parts that are not clear. Incorrect submissions slow down grading significantly.

There are several advantages to using esubmit: you will know immediately if your program produces the expected output. Assuming you follow the coding standard (when appropriate - you don't need for this exercise!) and meet the design requirements in the writeup, you should get full credit on each assignment if you match the output. One challenge is that your output may look a little different than what you expect when you are using esubmit; this has to do with how computers display characters when processing standard input and standard output; if you see what is displayed above when you run your program at the command prompt or within the IntelliJ console, then you can be certain it is producing the correct output for esubmit.