Skip to content

Restore Main.java with warmup assignment and remove Rainfall.java#15

Closed
Copilot wants to merge 2 commits into
devfrom
copilot/sub-pr-14
Closed

Restore Main.java with warmup assignment and remove Rainfall.java#15
Copilot wants to merge 2 commits into
devfrom
copilot/sub-pr-14

Conversation

Copy link
Copy Markdown

Copilot AI commented Dec 5, 2025

Reverts the Main.java → Rainfall.java rename and consolidates assignments. Main.java now contains the warmup revenue/expenses exercise, and Rainfall.java is removed from the branch.

File Changes

  • Created Main.java with warmup assignment (revenue/expenses conditional logic exercise)
  • Deleted Rainfall.java (removed rainfall assignment from branch)
  • Deleted Warmup.java (content moved to Main.java)
  • Reverted .clover-tests/MainTest.java and .clover-tests/run-tests.sh to reference Main.java

Current State

// Main.java - warmup exercise
public class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("Enter revenue: ");
        double revenue = scanner.nextDouble();
        System.out.print("Enter expenses: ");
        double expenses = scanner.nextDouble();
        // TODO: if/else for "in the black" vs "in the red"
    }
}

Note: MainTest.java contains rainfall tests from the original Main.java assignment. Test-code mismatch is expected until rainfall assignment is reintroduced.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Co-authored-by: ApplebaumIan <9451941+ApplebaumIan@users.noreply.github.com>
Copilot AI changed the title [WIP] Refactor codebase to use Rainfall.java and RainfallTest.java Restore Main.java with warmup assignment and remove Rainfall.java Dec 5, 2025
Copilot AI requested a review from ApplebaumIan December 5, 2025 02:42
@ApplebaumIan ApplebaumIan deleted the copilot/sub-pr-14 branch December 7, 2025 18:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants