ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

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

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 4 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 25 May 2017 My Price 9.00

Final Exam22C:2110/3110 Programming

Can some one answer the questions from attached file and send me python file ?

 

Final Exam22C:2110/3110 Programming for InformaticsFriday, Dec. 19, 201445 points total1. (9 points) Consider the functions:def p1a(n):result = 0if ((n % 2) == 0) or ((n % 5) == 0):return result+1return resultdef p1b(n):result = 0if ((n % 2) == 0):result = result+1if ((n % 5) == 0):result = result+1return resultdef p1c(n):if (n%2) == 0:return 1if (n%5) == 0:return 1def p1d(n):result = 0if (n%2) == 0:result = result + 1elif (n%5) == 0:result = result + 1return resultFor each item below, say whether or not the speci±ed function returns the same value as p1a on all integerinputs. If you answer “no” give, provide an example input/output values that demonstrate the di²erence.p1b:p1c:p1d:

Attachments:

Answers

(11)
Status NEW Posted 25 May 2017 06:05 AM My Price 9.00

-----------

Not Rated(0)