Cristine C.

asked • 09/16/21

help me make program

Create a program called "BUZZERS" that will input digits. Buzzers are computed according to the input. if the digit contains 0,6,7,5 it adds 1 and then otherwise it adds 2. Your input is from 0-9999999.Your program will output the total BUZZERS.



EXAMPLE TEST CASE 1:

input number: 24789

output: 9



why 9? because 7 is 1 then 2489 is 2+2+2+2

============> 9



Test Case no.



input number: 2307

output: 6

3 Answers By Expert Tutors

By:

Inactive Tutor answered • 09/22/21

Tutor
New to Wyzant

Inactive Tutor answered • 09/17/21

Tutor
New to Wyzant

Inactive Tutor answered • 09/17/21

Tutor
New to Wyzant

Still looking for help? Get the right answer, fast.

Ask a question for free

Get a free answer to a quick problem.
Most questions answered within 4 hours.

OR

Find an Online Tutor Now

Choose an expert and meet online. No packages or subscriptions, pay only for the time you need.