diff --git a/Students/Aakriti/Python/class.py b/Students/Aakriti/Python/class.py new file mode 100644 index 0000000..c67c090 --- /dev/null +++ b/Students/Aakriti/Python/class.py @@ -0,0 +1,5 @@ +number= int(input("Enter a number:")) +if number %2==0: + print("The number is even") +else: + print("The given number is odd") diff --git a/Students/Aakriti/Python/task1.py b/Students/Aakriti/Python/task1.py new file mode 100644 index 0000000..60e03d7 --- /dev/null +++ b/Students/Aakriti/Python/task1.py @@ -0,0 +1,70 @@ +# "The Smart Checkout System" +# Objective: Create a JavaScript program that simulates a simple shopping cart checkout process. + +# Instructions for Students: +# Write a code script that performs the following steps in order: + +# Setup the Store: + +# Create a const variable for walletBalance and set it to 5000. +# Create an array called cartItems containing three prices: [500, 1200, 350]. +# Manage the Cart (Array Operations): + +# A new item is added! Use .push() to add a price of 2000 to the cart. +# Oops, that item is too expensive. Use .pop() to remove the last item. +# Create a new array called recommendedItems with prices [100, 200]. +# combine recommendedItems and cartItems into a new array called finalCart using the Spread Operator (...). +# Calculate Totals (Math & Operators): + +# Calculate the sum of the prices in finalCart (Hint: since we don't have loops yet, access them manually like finalCart[0] + finalCart[1]...). +# Store this sum in a variable totalPrice. +# Add a 10% tax to the logic. Update totalPrice to include the tax. +# Round the totalPrice to 2 decimal places using .toFixed(). +# Coupon Code Handling (String Manipulation): + +# Create a variable couponCode with the messy value " DisCOunT10 ". +# Clean up the code: Remove the whitespace using .trim() and convert it to uppercase. +# If the cleaned code is "DISCOUNT10", subtract 500 from the totalPrice. +# Final Decision (Conditionals): + +# Write an if/else statement: +# If totalPrice is less than or equal to walletBalance: Console log "Purchase Successful! New Balance: [Remaining Amount]". +# Else: Console log "Insufficient Funds! You need [Missing Amount] more." +# Receipt Generation (Randomness): + +# Generate a random Order ID between 1 and 100 using Math.random() and Math.floor(). +# Console log a receipt message using Template Literals (backticks): Order [ID] confirmed. Thank you for shopping! + + +import random +WalletBalance=5000 +CartItems=[500,1200,350] +CartItems.append(2000) +print(CartItems) +CartItems.pop() +print(CartItems) + +RecommendedItems=[100,200]# we can use *or + or extent to destructure lists and make one list out of them +FinalCart=CartItems+RecommendedItems +print(FinalCart) +TotalPrice=FinalCart[0]+FinalCart[1]+FinalCart[2]+FinalCart[3]+FinalCart[4] +print(TotalPrice) + +TotalPricewithTax= TotalPrice+(10/100)*TotalPrice +print(TotalPricewithTax) + +CuponCode =" DisCOunT10 " +print(CuponCode.strip().upper()) +if CuponCode=="DISCOUNT10": + TotalPrice-=500 + +if TotalPrice<= WalletBalance: + NewBalance=WalletBalance-TotalPrice + print(f"Purchase Sucessfull New Balance={NewBalance}") + OrderID=random.randint(1,101) + print(f" {OrderID} Confimed!!!! Thankyou for shopping") + +else: + MissingBalance=TotalPrice-WalletBalance + print(f"Insufficient Balance!!! You need {MissingBalance} more") + diff --git a/Students/Aakriti/bgcolor_change.html b/Students/Aakriti/bgcolor_change.html new file mode 100644 index 0000000..233e9b2 --- /dev/null +++ b/Students/Aakriti/bgcolor_change.html @@ -0,0 +1,25 @@ + + + + + + Document + + + + + + + \ No newline at end of file diff --git a/Students/Aakriti/dom.html b/Students/Aakriti/click.html similarity index 64% rename from Students/Aakriti/dom.html rename to Students/Aakriti/click.html index c56335b..1a8bed6 100644 --- a/Students/Aakriti/dom.html +++ b/Students/Aakriti/click.html @@ -4,15 +4,11 @@ Document - diff --git a/Students/Aakriti/cocacola.html b/Students/Aakriti/cocacola.html new file mode 100644 index 0000000..02d90f5 --- /dev/null +++ b/Students/Aakriti/cocacola.html @@ -0,0 +1,49 @@ + + + + + + Document + + +

Coca-Cola

+

Quantity

+

1

+

+ + + + + + \ No newline at end of file diff --git a/Students/Aakriti/display.html b/Students/Aakriti/display.html new file mode 100644 index 0000000..ab01d1d --- /dev/null +++ b/Students/Aakriti/display.html @@ -0,0 +1,60 @@ + + + + + + Document + + + +
+ +
+ + + + \ No newline at end of file diff --git a/Students/Aakriti/inc_dec_btn.html b/Students/Aakriti/inc_dec_btn.html new file mode 100644 index 0000000..f0bb6ba --- /dev/null +++ b/Students/Aakriti/inc_dec_btn.html @@ -0,0 +1,31 @@ + + + + + + Counter + + +

0

+ + + + + + + \ No newline at end of file diff --git a/Students/Aakriti/letslearn.css b/Students/Aakriti/letslearn.css index 4360653..37267c1 100644 --- a/Students/Aakriti/letslearn.css +++ b/Students/Aakriti/letslearn.css @@ -1,84 +1,70 @@ -.navigation{ - display:flex; - justify-content:space-evenly; - gap:4px; - +@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&display=swap'); +*{ + margin:0; + padding:0; + box-sizing: border-box; } -.tab a{ - text-decoration:none; - font-family: monospace; - font-size:1.5rem; - color:grey; - +body{ + background-color: rgb(41, 54, 165); } -.tab a:hover{ - color:cornflowerblue; +.navbar{ + background-color:white; + display:flex; + justify-content: space-around; + align-items:center; + padding:30px; +} +.links{ + display:flex; + gap:100px; } -h3{ - font-size:4rem; +a{ + text-decoration:none; + color:rgb(117, 113, 113); + font-family: Roboto; + font-size: large; font-weight: bold; - color:orangered; } -p{ - font-size:1.5rem; - color:grey; +ul{ + list-style: none; } -.bttn{ - display:inline-block; +.logo{ + font-weight:bold; + color:rgb(117, 113, 113); } - -.enrollnow{ - - background-color: cornflowerblue; - color:white; - border-radius:4px; - padding:8px; +.coursedropdown{ + position:absolute; + background-color:white; + color:rgb(117, 113, 113); + margin:0px; + padding:0px; + min-width:150px; + display:none; } -.enrollnow :hover{ - background-color: orangered; +li:hover .coursedropdown{ + display:block; } -.viewall{ - background-color: white; - color:black; - border-radius:4px; - padding:8px; - border-radius:1px solid orangered; -} -.viewall :hover{ - background-color: orangered; - color:white; -} -.container{ - display:inline-block; - background-color: cornflowerblue; - border-radius: 14px; - width:40vw; - height:35vh; - position:relative; -} -.box{ +.eventsdropdown{ position:absolute; background-color:white; - border:1px solid orangered; - border-radius: 4px;; + color:rgb(117, 113, 113); + margin:0px; + padding:2px; + min-width:150px; + display:none; } -.box1{ - top:0; - right:-1; - width:30px; - height:20px; +li:hover .eventsdropdown{ + display:block; } -.box2{ - top:-1; - left:-1; - width:40px; - height:80px; -} -.box3{ - bottom:0; - right:0; - width:30px; - height:30px; -} - +sectionss .trustbox{ + background-color: white; + border: 1px solid orangered; + color:orangered; + border-radius:14px; + margin:auto; + padding:8px; + width:200px; + position: relative; + left:0; +} \ No newline at end of file diff --git a/Students/Aakriti/letslearn.html b/Students/Aakriti/letslearn.html index 085590a..5f6e67d 100644 --- a/Students/Aakriti/letslearn.html +++ b/Students/Aakriti/letslearn.html @@ -3,35 +3,60 @@ - letslearn_webpage - + letslearn_website + - -

Best

-

IT Training Institute for IT &
Computer Training in Nepal

-

Lorem, ipsum dolor sit amet consectetur adipisicing elit. Praesentium non, ullam quia iure - debitis repudiandae adipisci, consequuntur, fuga asperiores illo facilis officia sapiente - quamad explicabo in tenetur fugiat cum dolores, itaque fuga ilnventore? Animi tempora totam - mollitia a porro consectetur.sunt magnam laborum vitae suscipit explicabo quos autem it earum fugiat expedita harum - perspiciatis.

-

architecto est dolorem earemque placeat beatae reprehenderit porro deleniti aliquam vo - luptatibus alias laudantium quisquam, veritatis delectus sint aut officiis nostr - ventore

-
-
-
+
+ - \ No newline at end of file +
+
+
+
+
Trusted by 4000+ students
+

Best IT Training Institute in

+

Nepal

+

Lorem ipsum dolor sit amet consectetur, adipisicing elit. Nostrum magnam ab ducimus omnis repudiandae maiores quibusdam suscipit eligendi! Expedita consequuntur voluptates veritatis! Doloremque, harum consectetur! Molestiae recusandae explicabo, adipisci beatae cupiditate maiores, qui, libero asperiores sint voluptates consectetur officiis placeat! Ipsa voluptates excepturi pariatur quaerat non, temporibus saepe vitae officiis praesentium qui rerum. Reprehenderit placeat vel fugiat nemo doloribus! Ab, aliquam!


+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Ipsa mollitia maiores nisi. Ratione eum enim qui! Optio, fugiat praesentium?

+
+
+ +
+
+
+ + \ No newline at end of file diff --git a/Students/Aakriti/try1.html b/Students/Aakriti/try1.html new file mode 100644 index 0000000..bb848f0 --- /dev/null +++ b/Students/Aakriti/try1.html @@ -0,0 +1,19 @@ + + + + + + Document + + + google + + + \ No newline at end of file diff --git a/getStarted/js/Function.js b/getStarted/js/Function.js index 67d7f53..e88f683 100644 --- a/getStarted/js/Function.js +++ b/getStarted/js/Function.js @@ -17,8 +17,8 @@ console.log(message1); console.log(message2); //arrow function -const addArrow = (a, b) => { - console.log(a + b); +const addArrow = a=> { + console.log(a ); }; addArrow(5, 10);