Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

python plz help with all parts a) Start ty writing a peceram that askt the vief to enter norde fejeatedly unti the user ectem eut

python plz help with all parts image text in transcribed
image text in transcribed
a) Start ty writing a peceram that askt the vief to enter norde fejeatedly unti the user ectem "eut" (and raactly thes worit wath this ease). In the end, it junt dipplen thark. pou. Please see the below anfinle run: Enter a ward hello: tnter a mardit interestine tinter a wordi guIT Inter a wondi More? tater a mord quit Thank yeyt b) Modyy the code se that it stees whien the oser enters "quat" lin lower caiej or ard in upper casel, See below sample hint Inter a mondt Hello inter a vord Qutt fnter a word: qutt Thank youl a further modity the code so that it exits whenever the letters os u.lt are entered in this order nerarthess of the case. Sie trelow sample run: Fnter a wordt Hello Fnter a irordt. QuIt Thank you? d) Modity your code io that is reports in the end the cumber ef worts that were nitered belore quitire see below samgle nat Enter a woedf. This Enter a mord: 15 . Enter a word: interestife. Finter a wirds quIT You entered 3 merds. Thank youl e) Modidy your esile so that is accepts enly sirgle chyanters. if the wier entens multiple: characters, the pregam shoudd inderm the uner that this is an erior and not court if at a Fiter a charscter; T Inter a character: is Invalud entry, please try adain Inter a characters A Inter a characteri q Voe enteced 2 correct characters. thand you! 1) This code is actualy aimed at coenting guects at a party based on their gender. Vald inpos ovig these lethers: See below a mole run: fater the zender of iqest number 1 if finter the gandec of cuest rumber. 2 i 1 Irralld entry, please try agatn Friter the gender of cuest ruaber a i 1 Inter toe cender of zeest ruaber 3 it G Thvalid entry. pleale try again. feter the gender of cuest nuber. thiter the gender of guest naber 4.14 There iner 3 gursts teday. thank yrul ieparatey ite below semple nat. Inter the gender of cuat maber i in m Enter the cender of bent naber 2 if m. Enter the mender of cas nuteer 3 il mals Iityalid entry, ploabe try emein Emter the grater of hast maber 3 i f Cnter the exoder of kianst manber 47 f Entine the emdercet curat number s ilf Invalid nitry, Dlawe try anain iv) Meplace the count of total guests by the count of male gueats and the count of fe-sle gieits separately. Ste below sample roni Enter the gender of guest nunber 1 : : m Enter the gender of guest nueber 2 I K inter the cender of guest miber 3 it male invalid entry, please try aeain Eater the gender of guest mober.3 if. . Inter the gender of ruest nabber 4:f Cnter the ecoder of guest numer 5 : FF. Invalid entry, please try agaln Enter the gender of guest nurber thi F. Enter the gender of guest number 6:1Q Foere were 3 fensle giests today. there mere 2 male fuests today. Thank you! H) finally, make rure that the disploy is adequate by deplayine a messuge if there mere no guests, and mesage for males and fernales yeparately depending on their numben whe Imind the singuar/plura0. See below three cample runs: Enter the gender of guest number 1 i Q. There were no guests today! Thank youl b) Enter the Bender of ruest number-1 1 F Enter the gender of guest nunter 2 : 4 There was one fenale cuest today. Thank you! \$) Enter the gender of maest number 1Im Fiter the gender of cuast number 2: 2 m Inter the gender of cuest numben 3 : f Enter the cender of guest nubber 4:=M Enter the gender of cuest nubber 5.1. 4 There was one fecule puest today. There were 3 ale guests today. thank youl

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Objects And Databases International Symposium Sophia Antipolis France June 13 2000 Revised Papers Lncs 1944

Authors: Klaus R. Dittrich ,Giovanna Guerrini ,Isabella Merlo ,Marta Oliva ,M. Elena Rodriguez

2001st Edition

3540416641, 978-3540416647

More Books

Students also viewed these Databases questions