SophiaPretty

(5)

$14/per page/Negotiable

About SophiaPretty

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Accounting,Algebra See all
Accounting,Algebra,Applied Sciences,Architecture and Design,Art & Design,Biology,Business & Finance,Calculus,Chemistry,Communications,Computer Science,Economics,Engineering,English,Environmental science,Essay writing Hide all
Teaching Since: Jul 2017
Last Sign in: 304 Weeks Ago, 5 Days Ago
Questions Answered: 15833
Tutorials Posted: 15827

Education

  • MBA,PHD, Juris Doctor
    Strayer,Devery,Harvard University
    Mar-1995 - Mar-2002

Experience

  • Manager Planning
    WalMart
    Mar-2001 - Feb-2009

Category > Computer Science Posted 09 Nov 2017 My Price 10.00

generate a set of arithmetic problems and place them in a text file.

needs to be programmed in python with *.py attachment

--------------------------------------------------------------------------------------

a well-documented Python program that will generate a set of arithmetic problems and place them in a text file.  Here is how the program could look like

 

The program asks the user how many problems does he/she want to generate in the text file. At least one problem could be generated and a max of 100 problems. Your program should do boundary checking.

Next the program should ask the number of digits wanted in the problem set. Example if the user selects 2 digits then the program should generate problems like

-         32+44=

-         27/3=

If the user selects 3 digits for example, then problems could look like

-         276+234=

-         998*436=                            

The program should make sure the user does not enter more than 4 digits and no less than 1 digit. The program then should ask what kind of operations to generate. The user can select all four operations shown above, or some of them by answering (Y/N) or (y/n).

The program should generate the question in a file called gen_problems.txt and should also generate a second file called gen_problems_answer.txt in the same folder.

To put some twist to the program. Make sure your division operation yields only to full integers. So 9/3 is a full integer but 10/3 is not

Attachments:

Answers

(5)
Status NEW Posted 09 Nov 2017 10:11 AM My Price 10.00

----------- He-----------llo----------- Si-----------r/M-----------ada-----------m -----------Tha-----------nk -----------you----------- fo-----------r y-----------our----------- in-----------ter-----------est----------- an-----------d b-----------uyi-----------ng -----------my -----------pos-----------ted----------- so-----------lut-----------ion-----------. P-----------lea-----------se -----------pin-----------g m-----------e o-----------n c-----------hat----------- I -----------am -----------onl-----------ine----------- or----------- in-----------box----------- me----------- a -----------mes-----------sag-----------e I----------- wi-----------ll -----------be -----------qui-----------ckl-----------y

Not Rated(0)