Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
just added some files for checking
  • Loading branch information
Knightforce18 authored Dec 25, 2024
1 parent d892cce commit e131cf1
Show file tree
Hide file tree
Showing 3 changed files with 77 additions and 0 deletions.
43 changes: 43 additions & 0 deletions BankingSystem.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
public class BankingSystem {
private String owner;
private double balance;

public BankingSystem(String owner, double initialBalance) {
this.owner = owner;
this.balance = initialBalance;
}

public void deposit(double amount) {
if (amount > 0) {
balance += amount;
}
}

public void withdraw(double amount) {
if (amount <= balance) {
balance -= amount;
}
}

public double getBalance() {
return balance;
}

public void displayAccountInfo() {
System.out.println("Account Owner: " + owner);
System.out.println("Account Balance: $" + balance);
}

public static void main(String[] args) {
BankingSystem userAccount = new BankingSystem("John Doe", 1000.0);
userAccount.displayAccountInfo();

userAccount.deposit(500.0);
userAccount.displayAccountInfo();

userAccount.withdraw(300.0);
userAccount.displayAccountInfo();

System.out.println("\nCurrent Balance: $" + userAccount.getBalance());
}
}
22 changes: 22 additions & 0 deletions example.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="style.css">
</head>
<body>
<h1>hello this is version 2 of example.html</h1>

hello this is version 3 of example.html
</body>
</html>

hello this is version 4 of example.html

<h2>This is the version 5 of the example.html and now i am
pushing this on github
</h2>

<h2>this is to track new branch flow</h2>
12 changes: 12 additions & 0 deletions hello.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include<stdio.h>

int main()
{
printf("Hello github!!");

return 0;

printf("to track the new branch and now i am testing the conflict and now time to check conflict");


}

0 comments on commit e131cf1

Please sign in to comment.