Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit c778dce

Browse files
update readme + Exercise15_25 added
1 parent f652d2b commit c778dce

File tree

3 files changed

+45
-3
lines changed

3 files changed

+45
-3
lines changed

‎README.md‎

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
### I've included links below to all the freely accessible companion material and quick links to navigate through my solutions by chapter.
88

9-
### If you would like to contribute, please see: <a href="#contribute">Ways to Contribute</a>
9+
### See <a href="#contribute">Contribution Guide</a> for coding guidelines and information on how to contribute.
1010

1111
____
1212

@@ -41,9 +41,35 @@ object-oriented, GUI programming, advanced GUI and Web programming using Java...
4141
### <a href="https://media.pearsoncmg.com/ph/esm/ecs_liang_ijp_10/supplement/Supplement1dcodingguidelines.html">Java Coding Style Guidelines</a>
4242

4343
____
44+
4445
<span id="contribute"><span/>
46+
## How to Contribute
47+
48+
### _Coding Guidelines_
49+
- #### Solution must use Java 8 SE, as this is the version used by the book.
50+
- #### Every solution should have a java file containing a public main method for testing it.
51+
- #### Naming convention is: ExerciseCC_EE.java where CC is the chapter number and EE is the exercise number.
52+
- #### The public Exercise class containing the main method must include a JavaDoc comment on the class with original exercise question.
53+
- #### Each solution should be its own self-contained program with minimal dependencies on other files. If you need multiple files please create a package for the exercise.
54+
- #### ch_XX/exercise22_07/Exercise22_07.java
55+
- #### This allows us to utilize the Exercise Checking Tool [Exercise Checking Tool](https://liveexample.pearsoncmg.com/CheckExercise/faces/CheckExercise.xhtml?chapter=1&programName=Exercise01_01) to verify solutions.
56+
- ### Example exercise solution:
57+
```java
58+
package ch_01;
59+
/**
60+
* 1.1 (Display three messages) Write a program that displays Welcome to Java,
61+
* Welcome to Computer Science, and Programming is fun.
62+
*/
63+
public class Exercise01_01 {
64+
public static void main(String[] args) {
65+
System.out.println("Welcome to Java");
66+
System.out.println("Welcome to Computer Science");
67+
System.out.println("Programming is fun");
68+
}
69+
70+
}
71+
```
4572

46-
## Contribution Guide:
4773

4874
### <em id="prs">Pull requests:</em>
4975

‎ch_01/Exercise01_01.java‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
*/
77
public class Exercise01_01 {
88
public static void main(String[] args) {
9-
109
System.out.println("Welcome to Java");
1110
System.out.println("Welcome to Computer Science");
1211
System.out.println("Programming is fun");

‎ch_15/Exercise15_25.java‎

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
package ch_15;
2+
3+
import javafx.application.Application;
4+
import javafx.stage.Stage;
5+
6+
/**
7+
* **15.25 (Animation: ball on curve) Write a program that animates a ball moving along
8+
* a sine curve, as shown in Figure 15.32. When the ball gets to the right border,
9+
* it starts over from the left. Enable the user to resume/pause the animation with
10+
* a click on the left/right mouse button.
11+
*/
12+
public class Exercise15_25 extends Application {
13+
@Override
14+
public void start(Stage primaryStage) throws Exception {
15+
16+
}
17+
}

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /