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: 347 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 10 Jun 2017 My Price 7.00

Write a method called zeroDigits that accepts an integer parameter

Write a method called zeroDigits that accepts an integer parameter and returns the number of digits in the number that have the value 0. For example, the call zeroDigits(5024036) should return 2, and zeroDigits(743) should return 0. The call zeroDigits(0) should return 1. (We suggest you use a do/while loop in your solution.)

Answers

(8)
Status NEW Posted 10 Jun 2017 04:06 PM My Price 7.00

-----------

Attachments

file 1497113209-Answer.docx preview (1242 words )
/-----------/ T-----------his----------- fi-----------le -----------con-----------tai-----------ns -----------sev-----------era-----------l s-----------amp-----------le -----------pro-----------ble-----------ms -----------dis-----------cus-----------sed----------- in----------- le-----------ctu-----------re.----------- i-----------mpo-----------rt -----------jav-----------a.u-----------til-----------.*;----------- p-----------ubl-----------ic -----------cla-----------ss -----------Met-----------hod-----------s2 -----------{ ----------- ----------- //----------- Wr-----------ite----------- a -----------met-----------hod----------- ca-----------lle-----------d d-----------igi-----------tSu-----------m t-----------hat----------- ta-----------kes----------- an----------- in-----------teg-----------er -----------n a-----------s a----------- pa-----------ram-----------ete-----------r ----------- ----------- //----------- an-----------d t-----------hat----------- re-----------tur-----------ns -----------the----------- su-----------m o-----------f t-----------he -----------dig-----------its----------- of----------- n.----------- A-----------ssu-----------me -----------tha-----------t n----------- is----------- &a-----------mp;-----------gt;-----------= 0-----------. ----------- ----------- pu-----------bli-----------c s-----------tat-----------ic -----------int----------- di-----------git-----------Sum-----------(in-----------t n-----------) {----------- ----------- ----------- ----------- in-----------t s-----------um -----------= 0-----------; ----------- ----------- ----------- w-----------hil-----------e (-----------n &-----------amp-----------;gt-----------; 0-----------) {----------- ----------- ----------- ----------- ----------- s-----------um -----------+= -----------n %----------- 10-----------; ----------- ----------- ----------- ----------- -----------n =----------- n -----------/ 1-----------0; ----------- ----------- ----------- -----------} ----------- -----------
Not Rated(0)