Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Timer #359

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
Open

Timer #359

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .github/.vs/.github/v15/.suo
Binary file not shown.
6 changes: 6 additions & 0 deletions .github/.vs/VSWorkspaceState.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"ExpandedNodes": [
""
],
"PreviewInSolutionExplorer": false
}
Binary file added .github/.vs/slnx.sqlite
Binary file not shown.
1 change: 1 addition & 0 deletions Utilities
Submodule Utilities added at d1dc31
12 changes: 12 additions & 0 deletions lib/c/NaishaFatima21negativeorpositive.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#include <stdio.h>

int main() {
int number = -2;

if (number >= 0)
printf("%d is positive\n", number);
else
printf("%d is negative\n", number);

return 0;
}
13 changes: 13 additions & 0 deletions lib/java/NaishaFatima21.addtwonumbers.java
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
public class NumberAddition{
public static void main(String[] args){
int value_1, value_2, my_sum;
value_1 = 10;
value_2 = 15;
System.out.printf("The two numbers are %d and %d",value_1, value_2 );
System.out.printf("");
my_sum = value_1 + value_2;
System.out.println("The numbers have been added using '+' operator");
System.out.println("Sum of the two numbers is : ");
System.out.println(my_sum);
}
}
Empty file.
Empty file.
17 changes: 17 additions & 0 deletions lib/python/NaishaFatima21.tipcalculator1.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
print("Welcome to the tip calculator!")
bill = float(input("What was the total bill? $"))

tip = int(input("How much tip would you like to give? 10, 12, or 15? "))

num_of_split = int(input("How many people to split the bill? "))

calculate_bill = bill * (1 + (tip/100)) / num_of_split

final_amount = "{:.2f}".format(calculate_bill, 2)

if tip == 10:
print(f"Each person should pay: ${final_amount}")
elif tip == 12:
print(f"Each person should pay: ${final_amount}")
else:
print(f"Each person should pay: ${final_amount}")
11 changes: 11 additions & 0 deletions yourCard/data.json
Original file line number Diff line number Diff line change
Expand Up @@ -168,5 +168,16 @@
"nameOnHover": "Abdullah"
}
]
},
{
"username": "Naisha Fatima",
"avatar": "https://www.google.co.in/url?sa=i&url=https%3A%2F%2Funsplash.com%2Fimages%2Fnature%2Fmountain&psig=AOvVaw010i7xMNZZGdmkZic0mzfo&ust=1666951197024000&source=images&cd=vfe&ved=0CAoQjRxqFwoTCIjQuKKTgPsCFQAAAAAdAAAAABADgit",
"socialMedia": [
{
"link": "https://github.com/NaishaFatima21",
"nameOnHover": "Naisha Fatima"
}
]
}
]