├── bank.txt ├── demo.c ├── output ├── bank.txt ├── trail.exe ├── pattern-1.exe ├── pattern-2.exe ├── pattern-3.exe ├── bankProgram.exe ├── newVehical.exe └── bankProgram1.exe ├── pattern-1.c ├── pattern-3.c ├── pattern-2.c ├── .vscode ├── c_cpp_properties.json ├── launch.json └── settings.json ├── struct.c ├── newVehical.c ├── numberGuess.java ├── bankProgram1.c └── index.html /bank.txt: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /demo.c: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /output/bank.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArjiJethin/bankProject/HEAD/output/bank.txt -------------------------------------------------------------------------------- /output/trail.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArjiJethin/bankProject/HEAD/output/trail.exe -------------------------------------------------------------------------------- /output/pattern-1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArjiJethin/bankProject/HEAD/output/pattern-1.exe -------------------------------------------------------------------------------- /output/pattern-2.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArjiJethin/bankProject/HEAD/output/pattern-2.exe -------------------------------------------------------------------------------- /output/pattern-3.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArjiJethin/bankProject/HEAD/output/pattern-3.exe -------------------------------------------------------------------------------- /output/bankProgram.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArjiJethin/bankProject/HEAD/output/bankProgram.exe -------------------------------------------------------------------------------- /output/newVehical.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArjiJethin/bankProject/HEAD/output/newVehical.exe -------------------------------------------------------------------------------- /output/bankProgram1.exe: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ArjiJethin/bankProject/HEAD/output/bankProgram1.exe -------------------------------------------------------------------------------- /pattern-1.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | int n, i, j; 4 | printf("Enter the number of lines for the triangle: "); 5 | scanf("%d", &n); 6 | for(i=0; i 2 | int main(){ 3 | int n, i, j, k; 4 | printf("Enter the number of rows: "); 5 | scanf("%d", &n); 6 | 7 | for(i=1; i<=n; i++){ 8 | for(k=2*i-1; k<=0; k++){ 9 | printf("*"); 10 | } 11 | for(j=1; j<=n-i; j++){ 12 | printf(" "); 13 | } 14 | printf("\n"); 15 | } 16 | } -------------------------------------------------------------------------------- /pattern-2.c: -------------------------------------------------------------------------------- 1 | #include 2 | int main(){ 3 | int n, i, j, k; 4 | printf("Enter the number of rows: "); 5 | scanf("%d", &n); 6 | for(i=0; i 2 | struct student 3 | { 4 | char sname[30]; 5 | int age; 6 | float marks; 7 | }; 8 | 9 | struct student *student() 10 | { 11 | struct student *s = (struct student *)malloc(sizeof(struct student)); 12 | strcpy(s->sname, "Krishna"); 13 | s->age = 18; 14 | s->marks = 85.5; 15 | return s; 16 | } 17 | int main() 18 | { 19 | struct student *s = student(); 20 | printf("Name: %s\nAge: %d\nMarks: %.2f\n", s->sname, s->age, s->marks); 21 | free(s); 22 | return 0; 23 | } -------------------------------------------------------------------------------- /.vscode/launch.json: -------------------------------------------------------------------------------- 1 | { 2 | "version": "0.2.0", 3 | "configurations": [ 4 | { 5 | "name": "C/C++ Runner: Debug Session", 6 | "type": "cppdbg", 7 | "request": "launch", 8 | "args": [], 9 | "stopAtEntry": false, 10 | "externalConsole": true, 11 | "cwd": "c:/Users/aluru/OneDrive/Desktop/My Projects/bankProject", 12 | "program": "c:/Users/aluru/OneDrive/Desktop/My Projects/bankProject/build/Debug/outDebug", 13 | "MIMode": "gdb", 14 | "miDebuggerPath": "gdb", 15 | "setupCommands": [ 16 | { 17 | "description": "Enable pretty-printing for gdb", 18 | "text": "-enable-pretty-printing", 19 | "ignoreFailures": true 20 | } 21 | ] 22 | } 23 | ] 24 | } -------------------------------------------------------------------------------- /newVehical.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | bool verify(); 5 | int main(){ 6 | char regNo[10]; 7 | printf("Enter the registration number: "); 8 | scanf("%s", regNo); 9 | if(verify(regNo)){ 10 | printf("Accepted, Valid Registration Number\n"); 11 | } else { 12 | printf("Rejected, Invalid Registration Number\n"); 13 | } 14 | } 15 | 16 | bool verify(char regNo[]){ 17 | if(strlen(regNo)!=10){ 18 | printf("Invalid registration number, enter a valid registration number!\n"); 19 | return false; 20 | } 21 | for(int i=0; i<2; i++){ 22 | if(!isalpha(regNo[i])){ 23 | return false; 24 | } 25 | } 26 | for(int i=2; i<4; i++){ 27 | if(!isdigit(regNo[i])){ 28 | return false; 29 | } 30 | } 31 | for(int i=4; i<6; i++){ 32 | if(!isalpha(regNo[i])){ 33 | return false; 34 | } 35 | } 36 | for(int i=6; i<10; i++){ 37 | if(!isdigit(regNo[i])){ 38 | return false; 39 | } 40 | } 41 | return true; 42 | } -------------------------------------------------------------------------------- /.vscode/settings.json: -------------------------------------------------------------------------------- 1 | { 2 | "C_Cpp_Runner.cCompilerPath": "gcc", 3 | "C_Cpp_Runner.cppCompilerPath": "g++", 4 | "C_Cpp_Runner.debuggerPath": "gdb", 5 | "C_Cpp_Runner.cStandard": "", 6 | "C_Cpp_Runner.cppStandard": "", 7 | "C_Cpp_Runner.msvcBatchPath": "C:/Program Files/Microsoft Visual Studio/VR_NR/Community/VC/Auxiliary/Build/vcvarsall.bat", 8 | "C_Cpp_Runner.useMsvc": false, 9 | "C_Cpp_Runner.warnings": [ 10 | "-Wall", 11 | "-Wextra", 12 | "-Wpedantic", 13 | "-Wshadow", 14 | "-Wformat=2", 15 | "-Wcast-align", 16 | "-Wconversion", 17 | "-Wsign-conversion", 18 | "-Wnull-dereference" 19 | ], 20 | "C_Cpp_Runner.msvcWarnings": [ 21 | "/W4", 22 | "/permissive-", 23 | "/w14242", 24 | "/w14287", 25 | "/w14296", 26 | "/w14311", 27 | "/w14826", 28 | "/w44062", 29 | "/w44242", 30 | "/w14905", 31 | "/w14906", 32 | "/w14263", 33 | "/w44265", 34 | "/w14928" 35 | ], 36 | "C_Cpp_Runner.enableWarnings": true, 37 | "C_Cpp_Runner.warningsAsError": false, 38 | "C_Cpp_Runner.compilerArgs": [], 39 | "C_Cpp_Runner.linkerArgs": [], 40 | "C_Cpp_Runner.includePaths": [], 41 | "C_Cpp_Runner.includeSearch": [ 42 | "*", 43 | "**/*" 44 | ], 45 | "C_Cpp_Runner.excludeSearch": [ 46 | "**/build", 47 | "**/build/**", 48 | "**/.*", 49 | "**/.*/**", 50 | "**/.vscode", 51 | "**/.vscode/**" 52 | ], 53 | "C_Cpp_Runner.useAddressSanitizer": false, 54 | "C_Cpp_Runner.useUndefinedSanitizer": false, 55 | "C_Cpp_Runner.useLeakSanitizer": false, 56 | "C_Cpp_Runner.showCompilationTime": false, 57 | "C_Cpp_Runner.useLinkTimeOptimization": false, 58 | "C_Cpp_Runner.msvcSecureNoWarnings": false 59 | } -------------------------------------------------------------------------------- /numberGuess.java: -------------------------------------------------------------------------------- 1 | import java.util.Random; 2 | import java.util.Scanner; 3 | class numberGuess { 4 | public static void main(String[] args) { 5 | Scanner sc = new Scanner(System.in); 6 | Random random = new Random(); 7 | int playerScore = 0; 8 | int aiScore = 0; 9 | int rounds = 5; 10 | int maxNumber = 100; 11 | System.out.println("----------------------------------------"); 12 | System.out.println("Welcome to the Number Guessing Battle!"); 13 | System.out.println("----------------------------------------"); 14 | System.out.println("Try to guess the secret number as close as possible."); 15 | System.out.println("You will compete against the AI in " + rounds + " rounds."); 16 | System.out.println("The secret number is between 1 and " + maxNumber + "."); 17 | System.out.println("Whoever gets closer to the secret number scores more points!"); 18 | System.out.println("----------------------------------------"); 19 | for (int round = 1; round <= rounds; round++) { 20 | System.out.println("Round " + round + " starts!"); 21 | int secretNumber = random.nextInt(maxNumber) + 1; 22 | System.out.print("Enter your guess (1-" + maxNumber + "): "); 23 | int playerGuess = sc.nextInt(); 24 | int aiGuess = random.nextInt(maxNumber) + 1; 25 | System.out.println("AI guesses: " + aiGuess); 26 | int playerDifference = Math.abs(secretNumber - playerGuess); 27 | int aiDifference = Math.abs(secretNumber - aiGuess); 28 | System.out.println("Secret number was: " + secretNumber); 29 | if (playerDifference < aiDifference) { 30 | System.out.println("You were closer! You win this round."); 31 | playerScore += 10; 32 | } else if (aiDifference < playerDifference) { 33 | System.out.println("AI was closer! AI wins this round."); 34 | aiScore += 10; 35 | } else { 36 | System.out.println("It's a tie! Both guesses were equally close."); 37 | playerScore += 5; 38 | aiScore += 5; 39 | } 40 | System.out.println("Current Score -> You: " + playerScore + " | AI: " + aiScore); 41 | System.out.println("----------------------------------------"); 42 | } 43 | System.out.println("Game Over!"); 44 | System.out.println("Final Score -> You: " + playerScore + " | AI: " + aiScore); 45 | if (playerScore > aiScore) { 46 | System.out.println("Congratulations! You won the battle!"); 47 | } else if (aiScore > playerScore) { 48 | System.out.println("AI wins the battle! Better luck next time."); 49 | } else { 50 | System.out.println("It's a tie! What a close match!"); 51 | } 52 | } 53 | } 54 | -------------------------------------------------------------------------------- /bankProgram1.c: -------------------------------------------------------------------------------- 1 | #include 2 | #include 3 | #include 4 | #include 5 | struct Customers { 6 | char cName[20]; 7 | int cAge; 8 | int cAccountNumber; 9 | int cBalance; 10 | }; 11 | int createNewAccount(struct Customers *c1) { 12 | FILE *fp; 13 | long long max = 999999999999; 14 | long long min = 100000000000; 15 | 16 | srand(time(0)); 17 | c1->cAccountNumber = (rand() % (max - min + 1)) + min; 18 | c1->cBalance = 0; 19 | 20 | fp = fopen("bank.txt", "ab+"); 21 | if(fp == NULL){ 22 | printf("Error opening file!"); 23 | exit(1); 24 | } 25 | 26 | fwrite(c1, sizeof(struct Customers), 1, fp); 27 | fclose(fp); 28 | 29 | return c1->cAccountNumber; 30 | } 31 | int retrieveCustomer(int accountNumber, struct Customers *c1) { 32 | FILE *fp; 33 | fp = fopen("bank.txt", "rb"); 34 | if(fp == NULL) { 35 | printf("Error opening file!"); 36 | return 0; 37 | } 38 | 39 | while(fread(c1, sizeof(struct Customers), 1, fp)) { 40 | if(c1->cAccountNumber == accountNumber) { 41 | fclose(fp); 42 | return 1; 43 | } 44 | } 45 | 46 | fclose(fp); 47 | return 0; 48 | } 49 | void updateCustomer(struct Customers *c1) { 50 | FILE *fp; 51 | struct Customers temp; 52 | fp = fopen("bank.txt", "rb+"); 53 | if(fp == NULL) { 54 | printf("Error opening file!"); 55 | exit(1); 56 | } 57 | 58 | while(fread(&temp, sizeof(struct Customers), 1, fp)) { 59 | if(temp.cAccountNumber == c1->cAccountNumber) { 60 | fseek(fp, -sizeof(struct Customers), SEEK_CUR); 61 | fwrite(c1, sizeof(struct Customers), 1, fp); 62 | break; 63 | } 64 | } 65 | 66 | fclose(fp); 67 | } 68 | int Balance(int accountNumber) { 69 | struct Customers c1; 70 | if(retrieveCustomer(accountNumber, &c1)) { 71 | printf("\nAccount Number: %d\nCurrent balance: %d", c1.cAccountNumber, c1.cBalance); 72 | } else { 73 | printf("\nAccount not found!"); 74 | } 75 | return 0; 76 | } 77 | int Withdraw(int accountNumber) { 78 | struct Customers c1; 79 | int amount; 80 | if(retrieveCustomer(accountNumber, &c1)) { 81 | printf("\nEnter the amount to withdraw: "); 82 | scanf("%d", &amount); 83 | if(c1.cBalance >= amount) { 84 | c1.cBalance -= amount; 85 | updateCustomer(&c1); 86 | printf("\nWithdrawal successful! New balance: %d", c1.cBalance); 87 | } else { 88 | printf("\nInsufficient balance!"); 89 | } 90 | } else { 91 | printf("\nAccount not found!"); 92 | } 93 | return 0; 94 | } 95 | int Deposit(int accountNumber) { 96 | struct Customers c1; 97 | int amount; 98 | if(retrieveCustomer(accountNumber, &c1)) { 99 | printf("\nEnter the amount to deposit: "); 100 | scanf("%d", &amount); 101 | c1.cBalance += amount; 102 | updateCustomer(&c1); 103 | printf("\nDeposit successful! New balance: %d", c1.cBalance); 104 | } else { 105 | printf("\nAccount not found!"); 106 | } 107 | return 0; 108 | } 109 | 110 | int main() { 111 | int choice, accountNumber; 112 | struct Customers c1; 113 | 114 | printf("\n********************************"); 115 | printf("\n WELCOME TO BANK OF BANANA "); 116 | printf("\n********************************\n"); 117 | printf("1. Create a new bank account\n"); 118 | printf("2. Deposit money to account\n"); 119 | printf("3. Withdraw money from account\n"); 120 | printf("4. Check account balance\n"); 121 | printf("5. Exit\n"); 122 | printf("********************************\n"); 123 | printf("Enter a number of your choice to continue: "); 124 | scanf("%d", &choice); 125 | 126 | switch(choice) { 127 | case 1: 128 | printf("Enter your name: "); 129 | scanf("%s", c1.cName); 130 | printf("Enter your age: "); 131 | scanf("%d", &c1.cAge); 132 | c1.cAccountNumber = createNewAccount(&c1); 133 | printf("\nAccount created successfully!\n"); 134 | printf("Account Number: %d\nName: %s\n", c1.cAccountNumber, c1.cName); 135 | break; 136 | 137 | case 2: 138 | printf("Enter your account number: "); 139 | scanf("%d", &accountNumber); 140 | Deposit(accountNumber); 141 | break; 142 | 143 | case 3: 144 | printf("Enter your account number: "); 145 | scanf("%d", &accountNumber); 146 | Withdraw(accountNumber); 147 | break; 148 | 149 | case 4: 150 | printf("Enter your account number: "); 151 | scanf("%d", &accountNumber); 152 | Balance(accountNumber); 153 | break; 154 | 155 | case 5: 156 | printf("Thank you for banking with us!"); 157 | break; 158 | 159 | default: 160 | printf("Invalid choice!"); 161 | } 162 | 163 | return 0; 164 | } 165 | -------------------------------------------------------------------------------- /index.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 11 | Ocean 12 | 106 | 107 | 108 | 109 |
110 |
111 |

Oceans and water

112 |

Learn about water resources on exo-planets

113 | 114 |
115 |
116 |
117 |

Introduction:

118 |

In our universe, where water is a fundamental resource. Oceans play a crucial role in maintaining life on 119 | Earth. They provide essential habitats, food sources, and protection from harmful chemicals. Understanding 120 | the water cycle and its role in maintaining ecosystems is essential for sustainable development.


121 |
"Water is life. It's a precious resource that we must conserve and protect for future 122 | generations."

- Unknown
123 |
124 |
125 |

Exoplanet 1 TOI-1452 b

126 | kepler 127 |

The TOI-1452 star system is 99 light-years away from Earth,[5] located in the constellation of Draco. It is a binary pair of dim red dwarf stars separated by only 96 astronomical units (AU). A notable feature of this system is the presence of an exoplanet around one of the stars, designated as TOI-1452 b.[6] It is two M4 dwarf stars that were observed by TESS as a priority, since they are on the cool dwarf list, a list of high-priority orange-red and red dwarf stars, that was uploaded to TESS. It is a flare star, with a flare observed by TESS where the star brightened by 5%. The secondary star is often distinguished from the first with the name "TOI-1760".[7] TOI-1452 b was discovered by an international team led by astronomers from the Université de Montréal,[8][9] using data from NASA’s Transiting Exoplanet Survey Satellite (TESS).[1][10] The discovery was first reported in June 2022.[1]

128 |
"TOI-1452 b is a super Earth exoplanet that orbits an M-type star. Its mass is 4.82 Earths, it takes 11.1 days to complete one orbit of its star, and is 0.061 AU from its star. Its discovery was announced in 2022."
- NASA
129 |
130 |
131 |

Exoplanet 2 Kepler-138 c

132 | kepler 133 |

Kepler-138, also known as KOI-314, is a red dwarf located in the constellation Lyra, 219 light years from 134 | Earth. It is located within the field of vision of the Kepler spacecraft, the satellite that NASA's 135 | Kepler Mission used to detect planets transiting their stars. The star hosts three confirmed planets 136 | and a likely fourth, including the lowest-mass exoplanet with a measured mass and size discovered 137 | to date, Kepler-138b, with a mass comparable to that of Mars. Kepler-138d is remarkable for its low density; 138 | initially thought likely to be a gas dwarf,[8] more recent observations as of 2022 show that it, as well as 139 | planet c, are likely to be ocean worlds.

140 |
"Kepler-138 c is a super Earth exoplanet that orbits an M-type star. Its mass is 2.3 Earths, it 141 | takes 13.8 days to complete one orbit of its star, and is 0.0913 AU from its star. Its discovery was 142 | announced in 2014."
- NASA
143 |
144 |
145 |

Exoplanet 3 GJ 1214 b

146 | kepler 147 |

GJ 1214 b (sometimes Gliese 1214 b,[6] also named Enaiposha since 2023[2]) is an exoplanet that orbits the star GJ 1214, and was discovered in December 2009. Its parent star is 48 light-years from the Sun, in the constellation Ophiuchus. As of 2017, GJ 1214 b is the most likely known candidate for being an ocean planet.[1][7] For that reason, scientists often call the planet a "waterworld".[8] 148 | 149 | It is a super-Earth, meaning it is larger than Earth but is significantly smaller (in mass and radius) than the gas giants of the Solar System. After CoRoT-7b, it was the second super-Earth to have both its mass and radius measured[1] and is the first of a new class of planets with small size and relatively low density.[9] GJ 1214 b is also significant because its parent star is relatively near the Sun and because it transits that parent star, which allows the planet's atmosphere to be studied using spectroscopic methods.[1] 150 | 151 | In December 2013, NASA reported that clouds may have been detected in the atmosphere of GJ 1214 b

152 |
"GJ 1214 b is a Neptune-like exoplanet that orbits an M-type star. Its mass is 8.17 Earths, it takes 1.6 days to complete one orbit of its star, and is 0.0149 AU from its star. Its discovery was announced in 2009."
- NASA
153 |
154 |
155 |

Exoplanet 4 51 Pegasi b

156 | kepler 157 |

51 Pegasi is the Flamsteed designation of the host star. The planet was originally designated 51 Pegasi b by Michel Mayor and Didier Queloz, who discovered the planet in 1995. The following year it was unofficially dubbed "Bellerophon" /bɛˈlɛrəfɒn/ by astronomer Geoffrey Marcy, who followed the convention of naming planets after Greek and Roman mythological figures (Bellerophon is a figure from Greek mythology who rode the winged horse Pegasus).[6] 158 | 159 | In July 2014, the International Astronomical Union launched NameExoWorlds, a process for giving proper names to certain exoplanets and their host stars.[7] The process involved public nomination and voting for the new names.[8] In December 2015, the IAU announced the winning name for this planet was Dimidium.[9] The name was submitted by the Astronomische Gesellschaft Luzern (German for 'Astronomical Society of Lucerne'), Switzerland. 'Dimidium' is Latin for 'half', referring to the planet's mass of approximately half the mass of Jupiter.

160 |
"51 Pegasi b is a gas giant exoplanet that orbits a G-type star. Its mass is 0.46 Jupiters, it takes 4.2 days to complete one orbit of its star, and is 0.0527 AU from its star. Its discovery was announced in 1995."
- NASA
161 |
162 |
163 |

Some video content

164 | 167 |

This is the video taken from the pixabay which shows an exoplanet with water content in it. An exoplanet or extrasolar planet is a planet outside the Solar System. The first possible evidence of an exoplanet was noted in 1917 but was not then recognized as such. The first confirmation of the detection occurred in 1992. A different planet, first detected in 1988, was confirmed in 2003. According to statistics from the NASA Exoplanet Archive, As of 19 September 2024, there are 5,759 confirmed exoplanets in 4,300 planetary systems, with 963 systems having more than one planet.[3][4] The James Webb Space Telescope (JWST) is expected to discover more exoplanets, and to give more insight into their traits, such as their composition, environmental conditions, and potential for life. There are many methods of detecting exoplanets. Transit photometry and Doppler spectroscopy have found the most, but these methods suffer from a clear observational bias favoring the detection of planets near the star; thus, 85% of the exoplanets detected are inside the tidal locking zone.[6] In several cases, multiple planets have been observed around a star.[7] About 1 in 5 Sun-like stars[a] have an "Earth-sized"[b] planet in the habitable zone.[c][8][9] Assuming there are 200 billion stars in the Milky Way,[d] it can be hypothesized that there are 11 billion potentially habitable Earth-sized planets in the Milky Way, rising to 40 billion if planets orbiting the numerous red dwarfs are included.


168 |

Audio Sample:


169 | 172 |
173 | 176 | 177 | 178 | --------------------------------------------------------------------------------