Python Swostik
KI-verbesserter Titel
foad C inpurt "Enter ‘the resius")) area + matty pi vodius R82 volumes ( 4/3),* math: pi 2 vadiue at 3 print ( # Area of the drde\" area) Regd. Number:—© Department of Computer Science & Engineering Faculty of Engineering & Technology (ITER) print envotume of the «phere 1", volurne) output: “Enter the radius: S Area of the civele 1 78-5296163397 4403 Vowsme oP the sphere: 523-588 775598 2984 fot Cenpure "Enter a positive meen game (ne Cn43)) NR ative ney ics, eusn) uae print ¢ tt The sum of the first ow put Enter a potitive i Re sum of the “first 10 posive eye ie:55 (4) (a) arto rbs5 t=O tach’ = ocs’ > Fake’ to=25'% 'Faise’ t not ¢ False)” oy "True! yer 10 4 ve ge tmet Cezeb)’ > Ae eee > to (True! + (nore essb) ana ceca)" ‘True and True! op Thue! tPalse or True’ = ‘Trac! 5: $b Macb)or Cnet Cestb) ond ce 50, final onmwey for aya sta: b7S)cr0 2 Tue. Regd. Number: Name:) ————tof Computer Science & End ‘coring & Technology ( Department Faculty of Engin Uy ae bare beer! @2taa 4. Sack! tay chao! 7 tFalse Qe teeth’ sy PNR tnoye Fats)! CTr8C ‘False? tque and False’ sp (False? 2a))' - False oF False’ > ‘False a ‘notcestb)' > 4. teea’ ey apaacnal’ 5. tEnore c=zb) and ¢¢xa))” *P and C(t G+ Mach) or Cnor Ce=#b) $0) he final anewer is False (Is) Coder: prieipal=tooo onnual-vate = 0-12 amount — (9: prindpal » C14 onnual-rvate ) ** 10 amount-20= principal # 1+ annua). vate) #* 20 amount -30 = principal ACL? anhual- rate) RF 30 prnre ¢" Apter To yeors 1 Rs. Fameuntd-10!-ah3”) prior CF pdier w tors Rs. Gamount-20: af ¥”) pent Cf" Apter SS Rs {amount 29 :aP3") Qusput After 10 years: RS. 3105-85 After 22 years: Rs 9604-09 After A RE 24241.24Department of Compute (wy eee atede import rath e-pés mathse # math:pi pice: math:pra mash-€ printe se # ple” epi) pric "pices pire) Tt e-pi> pi-e: peat cok") reve ape Ousput etpi -$39734 22649566 eke pide: 553473 42924 73566 OK wg a (a) ~ 820 4 8/ lot QtS4 Lg gn0 “140 genie roSPRS ord +54 =~ 85 ) p gata dhe qanar 44 4aacs 3378 Science & Engineering Engineering & Technology (ITER) (O CF-AAZ)K L0-2SA BIS 4 yA 48 -dt10 2-10 agra 20 2005240 10-407 -S0 (a gmat to ~2SK EHS Sn 1075 Ettoris asa = 200 2001S = +0 Is-402 - 25 Name:———— - Regd. Number: —Department of Computer Science & En Faculty of Engineering & Technolo (0) false Cb) True CO false () Tue (e) Tue (2) True yp False Wh) False UD) Wee (p> Fatse (iy Tue (1) Tue meal-cost = Heart input ("Enter jhe cost of the meal :")) tax rate = 010 Aan amount = meof.-costX tan-THre ep - amount = meal cott * 018 total cost = meal-coct +4ax-amount + Hip-amount print C* Tax amount: “Ve 02# “4, 40x-arnoun ) prerc’ Tip amount: “/. +24" So tip- amount) prinrc" Total cost : "Tee" fe tated cast ) Oudput Enter the cost of the meal : 100 Tax arround: 10°00 tip arnoum: 18-00 Torod cost 1128-00 Name:——————_____ Regd. Number:——Department of Computer Science & Engineering . Faculty of Engineering & technology (ITER) ‘ 20), tempor math a: Tot Cinput C" Enter the first tote be int Gaput¢ "Enter the second sum: ath ditterence > a-b produtt sob quotient: lb remainders a%b Jogio- a= rasnepoen) pear a print corsum:", sum) prac" pi tterence :" ditferen ce) *y produit) print cnauotients") qpotent) proare" Remainder ¥ vemaindet) rege) wee ” prac * be", power) print ( “Product Enter the firct “oT 40 “ge 5 Enter the second sum 315 differences S product 150 Quotient? 2 Remainder teqiocad 0 arb : 100000 Name: ———-——— Regd. Number:—a 4 oava— ineering Department of Computer Science & Engineering Faculty of Engineering & Technology (I height = Stoat (input ("Enter the rep fo. meters + » intial speed =0 Otteteration = q.g 7 Tenal- speed = math. sqrt Coitial- speed *# 2 4 2# atteleration # oy Print ¢** Final speeds”, nal speed mis") pa Enter the height en metere :10 Final speed: 14 :00314.2839047327 m)s Celtis = float (input ¢" Ener the temperature in Celsiues ")) Fonrenheit (4/6) ® celsius +32 kavio = celgfur 4233 15 prot" Temperature in “Fahrenhds 3” , Aebeeheit , sees) paar ¢ Temperature in Retvin 27, kavin , °K") Enter the Aemperature in Etsius : a5 Temperature in Fahrenheit: 79-0 °F Temperature in Kelvin: 298.15 x Name:-—————-——Department of Computer Faculty of Engineering & T \ce & Engineering hnology (ITER) number: {ot Cinpul ("Enter a er ey thoutand = number I 1000 hundwed = (number % 1000) /1100 fens (number Yo too) 1/10 oni > number Yo 10 sum. of digcis = thoutand + hundered + 1en4 unt Pre sum oF ay 2", sumoF ay ) Output Enter a four-digct “ge 4 1234 Sum oF oe to GY cones: == eee umd = tnt Cfnput C" Enter the Fired ioteger int UEnpur "Enter the second num3 ink Eenpurc “Enter the third for $maltect: mia numd, rumay pum3) eget 2 Maxt eumd, nung, num3) middie = num4 + numa+ pum3 + - smalles} - Ga phar C" Sorted order: ") smallect , middie, we al Enter the first énte Enter the second meyers s Enter the third tengo? 8 Name: Regd. Number: — ————& Engineering Department of Computer Science (ITER) Faculty of Engineering & Technology Sorted order: 5 & 10 (as) = tode:- days = ent Cinput ("Enter the number oF q hour = fnt ¢ Snput¢ epi elnuebe of .»)) ménutess tot Cinpus ( “Enter the number of ménuters”)) “Enter the number oF seconds :"")) Seconds = iat Cinpur¢ 60460) ¢+ (minutes #60) 4 total - seconds = fe A440" G0) t Chourt® seconds ana “Total seconds: ", toral- seconds) aap Enter the number of days : 3 Enier the numba of hows: 3 Trier the nuspber of ménutes: 4 friw the nurther oF seconds! S