Question: Write a Flowgorithm program, which you submit to Blackboard. Follow our required conventions with respect to Program attributes, variable data types and naming. Include an

Write a Flowgorithm program, which you submit to Blackboard. Follow our required conventions with respect to Program attributes, variable data types and naming. Include an IPO chart.

Your program is required to have a function which accepts as input parameters, a number of 5 or less digits (no decimal part), and a position parameter between 1 and 5. This function must return the digit in the position (1-5) named as the second parameter, from the first parameter.

So, if the function has 2 parameters, 67894, and 2, the function returns 9. The position parameter counts from the right. In this case, the ones or units position is position 1. the tens position is position 2.

Your program should VALIDATE input, allowing for re-entry of data if an invalid number is enterred.

Your program shoud EXIT is the position that is enterred is a negative number.

As we modelled in our examples, a housekeeping function and a wrapup or exit function should also be included at program entry and exit respectively.

Your Main function should request user input, validate it, call the functions required, and display the digit in the requested position

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!