Please help me with these questions. I am having trouble understanding what to do Programming Language: (HTML, CSS, JavaScript) Please provide preconditions and postconditions for each solution you provide. IMPORTANT: In Ex 9 and 10, you are not allowed to use strings. Instead, you should work with numbers and mathematical operators, such as division, remainder, etc. Ex 9) Devise a flowchart to receive a positive number and output how many of its digits are equal to 5. For instance, if the input is 5155, the program should output 3, because there are three fives there. Another example, if the input is 14368, the program should output  0. Ex 10) Devise a flowchart to receive a positive number and output the product of its final five digits (or its final digits, if they all number less than five). For instance, if the input is 12811, the program should output 16, because 1*1*8*2*1 is 16.  Another example, if the input is 23 the program should output 6. However, if the input is 712811 the program should output 16, as the first digit will be ignored.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter5: Repetition Statements
Section5.3: Interactive While Loops
Problem 6E: (Conversion) a. Write a C++ program to convert meters to feet. The program should request the...
icon
Related questions
Question

Please help me with these questions. I am having trouble understanding what to do

Programming Language: (HTML, CSS, JavaScript)

Please provide preconditions and postconditions for each solution you provide.

IMPORTANT: In Ex 9 and 10, you are not allowed to use strings. Instead, you should work with numbers and mathematical operators, such as division, remainder, etc.

Ex 9) Devise a flowchart to receive a positive number and output how many of its digits are equal to 5. For instance, if the input is 5155, the program should output 3, because there are three fives there. Another example, if the input is 14368, the program should output  0.

Ex 10) Devise a flowchart to receive a positive number and output the product of its final five digits (or its final digits, if they all number less than five). For instance, if the input is 12811, the program should output 16, because 1*1*8*2*1 is 16.  Another example, if the input is 23 the program should output 6. However, if the input is 712811 the program should output 16, as the first digit will be ignored. 

Expert Solution
steps

Step by step

Solved in 4 steps with 2 images

Blurred answer
Knowledge Booster
Managing System
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr