-
Notifications
You must be signed in to change notification settings - Fork 396
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Showing
3 changed files
with
77 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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"); | ||
|
||
|
||
} |