Starting from:
$35

$29

PROGRAM #2 Solution

Outcomes:

Use a contemporary programming language and programming environment
Write, compile, edit, and debug simple Java programs
Format and comment source code that adheres to a given set of formatting guidelines
Use a zip compression tool to combine multiple files



Scoring:

At a bare minimum, the program you submit must have the assigned source code, and your source code must compile and run without crashing.

If you do not submit your source code (.java files), your score will be zero.
If you submit source code that does not compile, your score will be zero.
If you submit source code that roughly resembles the requirements and it compiles, but it crashes under normal operating conditions (nice input from the user), your score will be reduced by 75%.
 

 
Full credit
No credit or Partial credit
Write solutions to the three given problems (15 points)
The programs you submitted solved the specified problems.
The programs you submitted do not solve or only partially solve the specified problems.
Format and comment source code (5 points)
You followed all formatting guidelines (indentation, comments, upper/lowercase, etc.).
You did not follow some or all of the formatting guidelines.
Follow technical specifications

(5 points)
Your class names, filenames, and zip folder meet all specifications
You did not meet one or more of the required specifications


Getting started:

Google has posted an excellent collection of style guidelines, for a variety of languages. Visit the page https://google.github.io/styleguide/javaguide.html and review section 4, "Formatting". In this and future assignments, you are expected to follow the guidelines in that document.
For this assignment, you will be submitting a "zip" file containing all of your work. If you are unfamiliar with creating zip files, you should find a tutorial online for creating zip files for your platform (Mac, Windows, Linux, etc.)




Requirements: You will write three separate Java programs

Create a folder on your computer named program2. All three of your source code files should be created in this folder.
(5 points) In a Java class named Art, solve problem P1.8 from the end of chapter 1 in your textbook.
(5 points) In a Java class named House, solve problem P1.9 from the end of chapter 1 in your textbook. Make your house to exactly match the house that is shown.
(5 points) In a Java class named Translate, solve problem P1.20 from the end of chapter 1 in your textbook. Format your output using the format shown below, with phrases in each language arranged in a column. You may choose a language other than French. French is just an example. You should translate all 4 phrases.




English French

---------------------------------------------

Good morning Bonjour

It is a pleasure to meet you

Please call me tomorrow

Have a nice day





(5 points) Verify that your source code meets appropriate style guidelines, including comments (include name, date, section of CSE 174, and description) as well as any other guidelines described in the style guidelines document referenced earlier in this assignment.
(5 points) Follow these steps to submit your work:
Make sure the program2 folder contains the source code files (.java) for all three of your programs. It is OK if the folder also contains other files.
Compress the folder to create a zip file. Name the zip file program2.zip (Canvas might rename the file when you upload it...that's OK.)
Submit only the zip file to the Canvas website.




Note: If you submit your work and decide to modify one of your programs, you need to resubmit a new zip file containing all three source code files (even if you only modified one of them). Do not rename your source code files. Do not rename the zip file. Canvas may add a number to the name of your zip file. That is fine. But you should keep all source code filenames the same as described above.

More products