JavaScript required
We’re sorry, but Coda doesn’t work properly without JavaScript enabled.
Skip to content
Gallery
duke 2
read me first
4 enter values
5 update
6 caculate
challenges
Awesome! Congratulations!
More
Share
Explore
challenges
challenge 1
Can you come up with a simple app for pets?
Brief
Design and create a simple app that handles basic data about a pet or pets.
Here are some data ideas:
name
type
weight
age
height
Sketching your ideas
The program has to ask the user (pet owner / vet ) to enter a few values of different types (integer, real, String, boolean).
What simple results could you produce by doing some basic calculations or String work as you have seen in the tutorial tasks?
What will the output look like?
Coding
Create a new java replit project and get coding!
Build your code one thing at a time, test properly after each step before moving onto the next
Start with declaring your variables
Move on to getting the program to ask the user to enter data
Try displaying the data without any calculations yet
Now introduce some calculations
Finally display results
Brief
Sketching your ideas
Coding
Want to print your doc?
This is not the way.
Try clicking the ⋯ next to your doc name or using a keyboard shortcut (
Ctrl
P
) instead.