subject

Write a program that will take an integer and add up each of the number’s digits, count the number of digits in the number, and then average the digits. you must use a while loop and % to access each of the individual digits. use / to reduce the number so that you can average all of the digits. example: num = 123 can be taken apart with tempnum = 123 % 10 (which will pull off the 3), then tempnum = tempnum / 10 (will result in 12). do this in a loop while the number is > 0.   sample data : 234 10000 111 9005 84645 8547 123456789      be sure to include print statements that will format the output as below. sample output : 234 has a digit average of 3.0   10000 has a digit average of 0.2   111 has a digit average of 1.0   9005 has a digit average of 3.5   84645 has a digit average of 5.4   8547 has a digit average of 6.0   123456789 has a digit average of 5.0

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 21:00
Which function key is used to enable the spelling & grammar function in a word processing program such as microsoft word?
Answers: 3
question
Computers and Technology, 23.06.2019 04:31
Acloud service provider uses the internet to deliver a computing environment for developing, running, and managing software applications. which cloud service model does the provider offer? a. iaas b. caas c. maas d. paas e. saas
Answers: 1
question
Computers and Technology, 23.06.2019 21:00
Uget brainliest if accurate mary has been given the responsibility of hiring a person for the position of a software testing officer. which management function would mary achieve this responsibility?
Answers: 1
question
Computers and Technology, 24.06.2019 01:00
Verify each identity[tex] \frac{csc}{cot \: x \: + \: tan \: x} = cos \: x[/tex]
Answers: 1
You know the right answer?
Write a program that will take an integer and add up each of the number’s digits, count the number o...
Questions
question
Mathematics, 11.10.2020 14:01
question
Mathematics, 11.10.2020 14:01
question
Chemistry, 11.10.2020 14:01
question
Chemistry, 11.10.2020 14:01
Questions on the website: 13722363