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
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started