├── pepsi.png
├── Path 1.png
├── Path 2.png
├── Nutrition.png
├── images
├── user1.jpg
├── user2.jpg
├── user3.jpg
├── image1.jpg
├── image2.jpg
└── image3.jpg
├── Amann
├── Contributing.md
├── README.md
├── TusharHacktoberfest7
├── Responsive Calculator
├── Code_of_Conduct.md
├── index.html
└── style.css
/pepsi.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/pepsi.png
--------------------------------------------------------------------------------
/Path 1.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/Path 1.png
--------------------------------------------------------------------------------
/Path 2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/Path 2.png
--------------------------------------------------------------------------------
/Nutrition.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/Nutrition.png
--------------------------------------------------------------------------------
/images/user1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/images/user1.jpg
--------------------------------------------------------------------------------
/images/user2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/images/user2.jpg
--------------------------------------------------------------------------------
/images/user3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/images/user3.jpg
--------------------------------------------------------------------------------
/images/image1.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/images/image1.jpg
--------------------------------------------------------------------------------
/images/image2.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/images/image2.jpg
--------------------------------------------------------------------------------
/images/image3.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/surajsharma14/Pepsi/HEAD/images/image3.jpg
--------------------------------------------------------------------------------
/Amann:
--------------------------------------------------------------------------------
1 | public class BinarySearch {
2 |
3 | // Function to perform binary search on a sorted array
4 | public static int binarySearch(int[] arr, int target) {
5 | int left = 0;
6 | int right = arr.length - 1;
7 |
8 | while (left <= right) {
9 | int mid = left + (right - left) / 2;
10 |
11 | if (arr[mid] == target) {
12 | return mid; // Element found, return its index
13 | }
14 |
15 | if (arr[mid] < target) {
16 | left = mid + 1; // Search the right half
17 | } else {
18 | right = mid - 1; // Search the left half
19 | }
20 | }
21 |
22 | return -1; // Element not found
23 | }
24 |
25 | public static void main(String[] args) {
26 | int[] sortedArray = {2, 4, 6, 8, 10, 12, 14, 16, 18, 20};
27 | int target = 12;
28 |
29 | int result = binarySearch(sortedArray, target);
30 |
31 | if (result != -1) {
32 | System.out.println("Element " + target + " found at index " + result);
33 | } else {
34 | System.out.println("Element " + target + " not found in the array.");
35 | }
36 | }
37 | }
38 |
--------------------------------------------------------------------------------
/Contributing.md:
--------------------------------------------------------------------------------
1 | # Contributing Guidelines
2 |
3 | - The contributors will be allowed to work on the issue ONLY after it has been assigned to them.
4 | - The contributions will be counted only for the time period of the event, after the time period ends contributions can be taken in but wont be counted for the final evaluation.
5 | - Tampering or any unethical behaviour to the files or other participants will result in immediate disqualification.
6 | - Each PR must be associated with only ONE issue.
7 | - Don't open pull requests with minor text edits on other people's repositories.
8 | - Don't create multiple issue request for one issue.
9 |
10 | - ## INSTRUCTIONS-
11 |
12 | - Fork this Repository using the button at the top on right corner.
13 | - Clone your forked repository to your pc ( git clone "url from clone option.)
14 | - Create a new branch for your modifications (ie. `git branch new-user` and check it out `git checkout new-user` or simply do `git checkout -b new-user`)
15 | - Add your files (`git add -A`), commit (`git commit -m "added myself"`) and push (`git push origin new-user`)
16 | - Create a pull request
17 | - Star this repository
18 |
19 | ## Wait for Pull Request to merge
20 |
21 | ### Happy Contributing !!
22 |
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | ---
2 |
3 | # Pepsi Website HTML Code
4 |
5 | This is a sample HTML code for a webpage that represents a Pepsi product website. The code creates a webpage layout including navigation, hero section, product details, and special offers.
6 |
7 |
8 | ## Introduction
9 |
10 | This HTML code is a simple representation of a webpage for promoting Pepsi products. It includes various components like navigation, a hero section with product information, and details about special offers.
11 |
12 | ## Components
13 |
14 | ### 1. Navigation
15 |
16 | - Navigation bar with three sections: left, center, and right.
17 | - Categories: Category, Lifestyle, Books.
18 | - Icons: Heart, Shopping Cart, Account.
19 |
20 | ### 2. Hero Section
21 |
22 | - Divided into left, center, and right sections.
23 | - Promotes the freshness and features of the Pepsi product.
24 | - Contains images, text, and icons.
25 |
26 | ### 3. Right Hero Section
27 |
28 | - Contains expandable sections for Description, Nutrition, and Ingredients.
29 | - Provides additional details about the product.
30 |
31 | ### 4. Special Offers
32 |
33 | - Lists various special offers for Pepsi products.
34 |
35 | ## Special Offers
36 |
37 | Check out our special offers on Pepsi products:
38 |
39 | - Buy 1 Get 1 Free
40 | - 25% off on 2nd purchase
41 | - Combo offers available
42 |
43 | ## Usage
44 |
45 | You can use this HTML code as a template or starting point for creating a webpage promoting Pepsi products. Customize the content, styles, and images according to your requirements and branding.
46 |
47 | ---
48 |
49 | ## Steps to Contribute
50 |
51 |
52 | Step 1: Fork the repo and Go to your Git terminal and clone it on your machine.
53 |
66 | Step 3: Keep your cloned repo up to date by pulling from upstream (this will also avoid any merge conflicts while committing new changes)
67 |
68 |
69 | `git pull upstream main`
70 |
71 |
72 | Step 4: Create your feature branch (This is a necessary step, so don't skip it)
73 |
74 |
75 | `git checkout -b `
76 |
77 |
78 | Step 5: Track and stage your changes.
79 |
80 |
81 | `git status`
82 |
83 |
84 | Step 6: Add all the required changes
85 |
86 |
87 | ```git add .```
88 |
89 |
90 | Step 7: Commit all the changes (Write commit message as "Small Message")
91 |
92 |
93 | `git commit -m ""`
94 |
95 |
96 | Step 8: Push the changes for review
97 |
98 |
99 | `git push origin `
100 |
101 |
102 | Step 9: Create a PR on Github. (Don't just hit the create a pull request button, you must write a PR message to clarify why and what are you contributing)
103 |
104 |
--------------------------------------------------------------------------------
/TusharHacktoberfest7:
--------------------------------------------------------------------------------
1 | Certainly! Here's a simple Java program for a classic game called "Hangman." In this game, the computer selects a random word, and the player has to guess it by suggesting letters one at a time. The player has a limited number of attempts to guess the word correctly.
2 |
3 | import java.util.Scanner;
4 | import java.util.Random;
5 |
6 | public class HangmanGame {
7 | public static void main(String[] args) {
8 | Scanner scanner = new Scanner(System.in);
9 | Random random = new Random();
10 |
11 | String[] words = { "java", "programming", "hangman", "computer", "code", "gaming" };
12 | String wordToGuess = words[random.nextInt(words.length)];
13 | int maxAttempts = 6;
14 | int attempts = 0;
15 | boolean[] guessedLetters = new boolean[wordToGuess.length()];
16 |
17 | System.out.println("Welcome to Hangman!");
18 | System.out.println("Try to guess the word.");
19 |
20 | while (attempts < maxAttempts) {
21 | displayWordStatus(wordToGuess, guessedLetters);
22 | System.out.print("Enter a letter: ");
23 | char guess = scanner.next().charAt(0);
24 |
25 | if (isGuessCorrect(wordToGuess, guessedLetters, guess)) {
26 | System.out.println("Correct guess!");
27 | } else {
28 | attempts++;
29 | System.out.println("Incorrect guess. Attempts left: " + (maxAttempts - attempts));
30 | }
31 |
32 | if (isWordGuessed(guessedLetters)) {
33 | System.out.println("Congratulations! You guessed the word: " + wordToGuess);
34 | break;
35 | }
36 | }
37 |
38 | if (attempts == maxAttempts) {
39 | System.out.println("You ran out of attempts. The word was: " + wordToGuess);
40 | }
41 |
42 | scanner.close();
43 | }
44 |
45 | public static void displayWordStatus(String word, boolean[] guessedLetters) {
46 | System.out.print("Word: ");
47 | for (int i = 0; i < word.length(); i++) {
48 | if (guessedLetters[i]) {
49 | System.out.print(word.charAt(i));
50 | } else {
51 | System.out.print("_");
52 | }
53 | System.out.print(" ");
54 | }
55 | System.out.println();
56 | }
57 |
58 | public static boolean isGuessCorrect(String word, boolean[] guessedLetters, char guess) {
59 | boolean correctGuess = false;
60 | for (int i = 0; i < word.length(); i++) {
61 | if (word.charAt(i) == guess) {
62 | guessedLetters[i] = true;
63 | correctGuess = true;
64 | }
65 | }
66 | return correctGuess;
67 | }
68 |
69 | public static boolean isWordGuessed(boolean[] guessedLetters) {
70 | for (boolean letterGuessed : guessedLetters) {
71 | if (!letterGuessed) {
72 | return false;
73 | }
74 | }
75 | return true;
76 | }
77 | }
78 |
--------------------------------------------------------------------------------
/Responsive Calculator:
--------------------------------------------------------------------------------
1 | -------------------------------------------------------------------index.html----------------------------------------------------------------------------------------------
2 |
3 |
4 |
5 |
6 |
7 |
8 | Calculator
9 |
10 |
11 |
12 |
13 |
14 |
15 |
16 |
17 |
18 |
19 |
20 |
21 |
22 |
23 |
24 |
25 |
26 |
27 |
28 |
29 |
30 |
31 |
32 |
33 |
34 |
35 |
36 |
37 |
38 |
39 |
40 |
41 |
42 |
43 |
44 |
45 |
46 |
47 |
48 |
49 |
50 |
51 | -------------------------------------------------------------------style.css----------------------------------------------------------------------------------------------
52 |
53 | body{
54 | background: url("calci_bg.jpg");
55 | background-size: cover;
56 | background-repeat: no-repeat;
57 | background-attachment: fixed;
58 | overflow: hidden;
59 | font-family: Arial, sans-serif;
60 | display: flex;
61 | justify-content: center;
62 | align-items: center;
63 | height: 100vh;
64 | margin: 0;
65 | }
66 |
67 | .calculator {
68 | background-color: #e3e3e3;
69 | border-radius: 5px;
70 | width: 400px;
71 | padding: 10px;
72 | text-align: center;
73 | }
74 |
75 | .display input {
76 | width: 90%;
77 | padding: 10px;
78 | font-size: 20px;
79 | margin-bottom: 10px;
80 | }
81 |
82 | .buttons .row {
83 | display: flex;
84 | justify-content: space-between;
85 | }
86 |
87 | .buttons button {
88 | width: 23%;
89 | height: 70px;
90 | font-size: 24px;
91 | margin: 5px;
92 | border: none;
93 | border-radius: 5px;
94 | background-color: #212121;
95 | color: white;
96 | cursor: pointer;
97 | }
98 |
99 | .buttons button:hover {
100 | background-color: #555;
101 | }
102 |
103 |
104 |
105 | -------------------------------------------------------------------script.js----------------------------------------------------------------------------------------------
106 |
107 |
108 | let input = document.getElementById('result');
109 |
110 | function appendToInput(value) {
111 | input.value += value;
112 | }
113 |
114 | function clearInput() {
115 | input.value = '';
116 | }
117 |
118 | function calculateResult() {
119 | try {
120 | input.value = eval(input.value);
121 | } catch (error) {
122 | input.value = 'Error';
123 | }
124 | }
125 |
--------------------------------------------------------------------------------
/Code_of_Conduct.md:
--------------------------------------------------------------------------------
1 | # Contributor Covenant Code of Conduct
2 |
3 | ## Our Pledge
4 |
5 | We as members, contributors, and leaders pledge to make participation in our
6 | community a harassment-free experience for everyone, regardless of age, body
7 | size, visible or invisible disability, ethnicity, sex characteristics, gender
8 | identity and expression, level of experience, education, socio-economic status,
9 | nationality, personal appearance, race, religion, or sexual identity
10 | and orientation.
11 |
12 | We pledge to act and interact in ways that contribute to an open, welcoming,
13 | diverse, inclusive, and healthy community.
14 |
15 | ## Our Standards
16 |
17 | Examples of behavior that contributes to a positive environment for our
18 | community include:
19 |
20 | * Demonstrating empathy and kindness toward other people
21 | * Being respectful of differing opinions, viewpoints, and experiences
22 | * Giving and gracefully accepting constructive feedback
23 | * Accepting responsibility and apologizing to those affected by our mistakes,
24 | and learning from the experience
25 | * Focusing on what is best not just for us as individuals, but for the
26 | overall community
27 |
28 | Examples of unacceptable behavior include:
29 |
30 | * The use of sexualized language or imagery, and sexual attention or
31 | advances of any kind
32 | * Trolling, insulting or derogatory comments, and personal or political attacks
33 | * Public or private harassment
34 | * Publishing others' private information, such as a physical or email
35 | address, without their explicit permission
36 | * Other conduct which could reasonably be considered inappropriate in a
37 | professional setting
38 |
39 | ## Enforcement Responsibilities
40 |
41 | Community leaders are responsible for clarifying and enforcing our standards of
42 | acceptable behavior and will take appropriate and fair corrective action in
43 | response to any behavior that they deem inappropriate, threatening, offensive,
44 | or harmful.
45 |
46 | Community leaders have the right and responsibility to remove, edit, or reject
47 | comments, commits, code, wiki edits, issues, and other contributions that are
48 | not aligned to this Code of Conduct, and will communicate reasons for moderation
49 | decisions when appropriate.
50 |
51 | ## Scope
52 |
53 | This Code of Conduct applies within all community spaces, and also applies when
54 | an individual is officially representing the community in public spaces.
55 | Examples of representing our community include using an official e-mail address,
56 | posting via an official social media account, or acting as an appointed
57 | representative at an online or offline event.
58 |
59 | ## Enforcement
60 |
61 | Instances of abusive, harassing, or otherwise unacceptable behavior may be
62 | reported to the community leaders responsible for enforcement.
63 | All complaints will be reviewed and investigated promptly and fairly.
64 |
65 | All community leaders are obligated to respect the privacy and security of the
66 | reporter of any incident.
67 |
68 | ## Enforcement Guidelines
69 |
70 | Community leaders will follow these Community Impact Guidelines in determining
71 | the consequences for any action they deem in violation of this Code of Conduct:
72 |
73 | ### 1. Correction
74 |
75 | **Community Impact**: Use of inappropriate language or other behavior deemed
76 | unprofessional or unwelcome in the community.
77 |
78 | **Consequence**: A private, written warning from community leaders, providing
79 | clarity around the nature of the violation and an explanation of why the
80 | behavior was inappropriate. A public apology may be requested.
81 |
82 | ### 2. Warning
83 |
84 | **Community Impact**: A violation through a single incident or series
85 | of actions.
86 |
87 | **Consequence**: A warning with consequences for continued behavior. No
88 | interaction with the people involved, including unsolicited interaction with
89 | those enforcing the Code of Conduct, for a specified period of time. This
90 | includes avoiding interactions in community spaces as well as external channels
91 | like social media. Violating these terms may lead to a temporary or
92 | permanent ban.
93 |
94 | ### 3. Temporary Ban
95 |
96 | **Community Impact**: A serious violation of community standards, including
97 | sustained inappropriate behavior.
98 |
99 | **Consequence**: A temporary ban from any sort of interaction or public
100 | communication with the community for a specified period of time. No public or
101 | private interaction with the people involved, including unsolicited interaction
102 | with those enforcing the Code of Conduct, is allowed during this period.
103 | Violating these terms may lead to a permanent ban.
104 |
105 | ### 4. Permanent Ban
106 |
107 | **Community Impact**: Demonstrating a pattern of violation of community
108 | standards, including sustained inappropriate behavior, harassment of an
109 | individual, or aggression toward or disparagement of classes of individuals.
110 |
111 | **Consequence**: A permanent ban from any sort of public interaction within
112 | the community.
113 |
114 | ## Attribution
115 |
116 | This Code of Conduct is adapted from the [Contributor Covenant][homepage],
117 | version 2.0, available at
118 | https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
119 |
120 | Community Impact Guidelines were inspired by [Mozilla's code of conduct
121 | enforcement ladder](https://github.com/mozilla/diversity).
122 |
123 | [homepage]: https://www.contributor-covenant.org
124 |
125 | For answers to common questions about this code of conduct, see the FAQ at
126 | https://www.contributor-covenant.org/faq. Translations are available at
127 | https://www.contributor-covenant.org/translations.
128 |
--------------------------------------------------------------------------------
/index.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 |
5 |
6 |
7 |
8 |
9 |
10 |
11 |
12 |
14 |
15 |
18 |
19 |
20 | Pepsi
21 |
22 |
23 |
24 |
A carbonated soft drink manufactured by PepsiCo. Originally
122 | created and developed in 1893 by Caleb Bradham and introduced
123 | as Brad's Drink, it was renamed as Pepsi-Cola in 1898, and
124 | then shortened to Pepsi in 1961. In 2022, it was the second
125 | most valuable soft drink brand worldwide, behind Coca-Cola.
If you have any questions or feedback, feel free to get in touch with us.
149 |
161 |
162 |
163 |
164 |
165 |
166 |
167 |
168 |
Meet Our users
169 |
Lorem ipsum dolor, sit amet consectetur adipisicing elit.
170 |
171 |
172 |
Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet tempora eveniet
173 | ipsum hic ex ea repellat ullam. Placeat, asperiores unde. @username
175 |
176 |
177 |
178 |
Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet tempora eveniet
179 | ipsum hic ex ea repellat ullam. Placeat, asperiores unde. @username
181 |
182 |
183 |
184 |
Lorem ipsum dolor sit amet consectetur adipisicing elit. Amet tempora eveniet
185 | ipsum hic ex ea repellat ullam. Placeat, asperiores unde. @username
187 |
188 |
189 |
190 |
191 |
192 |
193 |
194 |
195 |
Gallery
196 |
Explore images related to Pepsi.
197 |
198 |
199 |
200 |
201 |
202 |
203 |
204 |
205 |
206 |
207 |
208 |
209 |
210 |
211 |
212 |
213 |
214 |
Frequently Asked Questions
215 |
Find answers to common questions about Pepsi.
216 |
217 |
218 |
219 |
220 |
221 |
225 |
226 |
228 |
229 | Answer 1: Pepsi offers a variety of flavors including Original, Diet Pepsi, Pepsi Zero Sugar, and more.
230 |
231 |
232 |
233 |
234 |
235 |
236 |
237 |
241 |
242 |
244 |
245 | Answer 2: Yes, you can purchase Pepsi products online through our official website or authorized retailers.
246 |
247 |
248 |
249 |
250 |
251 |
252 |
253 |
254 |
255 |
259 |
260 |
262 |
263 | Answer 3: Yes, Pepsi products are suitable for a vegetarian diet. They do not contain any non-vegetarian ingredients.
264 |
Moyo Shiro has
99 |just purchased