Alpha Geek

(8)

$10/per page/Negotiable

About Alpha Geek

Levels Tought:
University

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Environmental science,Essay writing,Programming,Social Science,Statistics Hide all
Teaching Since: Apr 2017
Last Sign in: 345 Weeks Ago, 6 Days Ago
Questions Answered: 9562
Tutorials Posted: 9559

Education

  • bachelor in business administration
    Polytechnic State University Sanluis
    Jan-2006 - Nov-2010

  • CPA
    Polytechnic State University
    Jan-2012 - Nov-2016

Experience

  • Professor
    Harvard Square Academy (HS2)
    Mar-2012 - Present

Category > Programming Posted 15 May 2017 My Price 7.00

Write a program that outputs the lyrics for the song

 

Write a program that outputs the lyrics for the song “Ninety-Nine Bottles of Beer on the Wall.” Your program should print the number of bottles in English, not as a number. For example

Design your program with a function that takes as an argument an integer between 0 and 99 and returns a string that contains the integer value in English. Your function should not have 100 different if-else statements! Instead, use % and / to extract the tens and ones digits to construct the English string. You may need to test specifically for values such as 0, 10–19, etc

 

 

 
 

Answers

(8)
Status NEW Posted 15 May 2017 11:05 AM My Price 7.00

-----------

Attachments

file 1494846416-Answer.docx preview (2259 words )
W-----------rit-----------e a----------- pr-----------ogr-----------am -----------tha-----------t o-----------utp-----------uts----------- th-----------e l-----------yri-----------cs -----------for----------- th-----------e s-----------ong----------- -----------Ni-----------net-----------y-N-----------ine----------- Bo-----------ttl-----------es -----------of -----------Bee-----------r o-----------n t-----------he -----------Wal-----------l.----------- -----------You-----------r p-----------rog-----------ram----------- sh-----------oul-----------d p-----------rin-----------t t-----------he -----------num-----------ber----------- of----------- bo-----------ttl-----------es -----------in -----------Eng-----------lis-----------h, -----------not----------- as----------- a -----------num-----------ber-----------. F-----------or -----------exa-----------mpl-----------e ----------- D-----------esi-----------gn -----------you-----------r p-----------rog-----------ram----------- wi-----------th -----------a f-----------unc-----------tio-----------n t-----------hat----------- ta-----------kes----------- as----------- an----------- ar-----------gum-----------ent----------- an----------- in-----------teg-----------er -----------bet-----------wee-----------n 0----------- an-----------d 9-----------9 a-----------nd -----------ret-----------urn-----------s a----------- st-----------rin-----------g t-----------hat----------- co-----------nta-----------ins----------- th-----------e i-----------nte-----------ger----------- va-----------lue----------- in----------- En-----------gli-----------sh.----------- Yo-----------ur -----------fun-----------cti-----------on -----------sho-----------uld----------- no-----------t h-----------ave----------- 10-----------0 d-----------iff-----------ere-----------nt -----------if------------els-----------e s-----------tat-----------eme-----------nts-----------! I-----------nst-----------ead-----------, u-----------se -----------% a-----------nd
Not Rated(0)