Anda di halaman 1dari 1

AssignmentNo1

(Total40Marks)

Instructions
1. Youhave8questionsgivenbelow. 2. Readthroughthematerialgiveninthecourse.Alsogothroughthesampleexamplesandattemptthe programs.Develop8programsoneforeachquestion.Youmaynametheprogramasqn1.cs,qn2.csetc correspondingtoeachquestion.(Thisnamingiscompulsory)

Questions(Allthequestionscarry5Markseach)
1. WriteaC#programwhichworksasaPaycalculator.Thecalculatormaybedesignedasfollows, Inputthebasicpay CalculateSalary=BasicPay+HRA+DA DA=20%ofBasicPay HRA=10%ofBasicPay 2. WriteaC#programtowishtheuser"GoodMorning","GoodAfternoon","GoodEvening"etc.,depending onthetimeoftheday. 3. WriteaC#programwhichfindsoutgreatestamong3numbers 4. WriteaC#programtocreateanarrayofnumbers.Searchforaninputnumberinthisarray 5. WriteaC#programtosumthedigitsofauserinputnumber.Exampleforaninput123,theoutputis6(1+ 2+3). 6. WriteaC#programwhichworksasamarksheetcalculator,itcomputesthemarksin5subjects.Students havetogetabove40%ineverysubjecttopass.Iftotal%is above75%thengrade=Distinction >60%thengrade=Firstclass >50%thengrade=Secondclass <50%thenFailed 7. WriteaC#programtoSortagivenlistofnumbers.(Hint:YoumayuseBubblesortalgorithmtosort) 8. WriteaC#ProgramtocheckwhethertheinputstringisaPalindromeornot.

Methodofsubmission:
Step1. Step2. Step3. Createafolderinanylocationofyourcomputer. Copytheqn1.cs,qn2.csetcfilesintothisfolder. Zipthefolderanduploadthezippedfile.

FORDOUBTSCLARIFICATION,PLEASEUPLOADYOUR QUERIESINTHEFORUM,PROBLEMSDOINGASSIGNMENTS

1 DOEACCCentreCalicut AssignmentNo1

Anda mungkin juga menyukai