Skip to content

MultiverseLearningProducts/JSEA-2.1

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

<style> .box { display: Inline-block; text-align: center; padding: 15px; background-color: #23EB9A; border-radius: 10px; align-items: Center; display: flex; justify-content: center; } </style>

Access and Credentials

Item Detail
User [email protected](desktop1).Username+++
Password [email protected](desktop1).Password+++

Java Program Structure Basics - Skills Application

Complete the following tasks to demonstrate understanding of Java program structure fundamentals

@lab.Activity(CFU1)

Task 1: Complete HelloWorld Program (25 points)

Complete the HelloWorld.java file by:

  • Adding the correct package declaration
  • Adding appropriate comments explaining the program
  • Implementing the System.out.println statement
  • Adding Javadoc comments above the class

Files to modify:

  • src/main/java/com/skills/java/HelloWorld.java

Task 2: Implement User Input Program (30 points)

Complete the UserInputProgram.java file by:

  • Adding the correct package declaration
  • Importing the Scanner class
  • Implementing user input functionality
  • Adding proper variable declarations and calculations
  • Including effective commenting

Files to modify:

  • src/main/java/com/skills/java/UserInputProgram.java

Task 3: Fix Broken Code (25 points)

Identify and fix all errors in BrokenCode.java:

  • Fix missing semicolons
  • Correct method modifiers
  • Add missing keywords
  • Fix package and import statements
  • Ensure proper class structure

Files to modify:

  • src/main/java/com/skills/java/BrokenCode.java

Task 4: Run Tests and Validate (20 points)

Execute the test suite to validate your solutions:

  • Compile all Java files successfully
  • Run the test runner script
  • Ensure all tests pass
  • Verify program functionality

Commands to run:

# Option 1: Using Maven (if available)
./run-tests.sh

# Option 2: Using simple test runner
./simple-test-runner.sh

Success Criteria

  • All Java files compile without errors
  • Programs execute and produce expected output
  • All test cases pass successfully
  • Code follows Java best practices and conventions
  • Proper use of packages, imports, and class structure

Learning Objectives

By completing this Skills Application, you will demonstrate:

  • Understanding of Java class structure and components
  • Knowledge of main method purpose and signature
  • Package organization and import statement usage
  • Differentiation between statements, blocks, and comments
  • Ability to write basic Java programs with proper syntax
  • User input/output program creation skills
  • Understanding of filename-class relationships

Project Structure

java-program-structure-basics/
├── src/main/java/com/skills/java/
│   ├── HelloWorld.java           # Task 1: Basic program structure
│   ├── UserInputProgram.java     # Task 2: User input and processing
│   └── BrokenCode.java          # Task 3: Error identification and fixing
├── run-tests.sh                  # Maven-based test runner
├── simple-test-runner.sh         # Simple test runner (no Maven required)
└── README.md                     # This instruction file

Getting Started

  1. Navigate to the project directory
  2. Review the TODO comments in each Java file
  3. Complete the exercises following the instructions
  4. Test your solutions using the provided test runners
  5. Ensure all programs compile and run correctly

Technical Requirements

  • Java JDK 8 or higher
  • Basic understanding of Java syntax
  • Familiarity with command line operations
  • Text editor or IDE for code modification

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published