Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Harness The Power Of Big Data The IBM Big Data Platform

Authors: Paul Zikopoulos, David Corrigan James Giles Thomas Deutsch Krishnan Parasuraman Dirk DeRoos Paul Zikopoulos

1st Edition

0071808183, 9780071808187

More Books

Students also viewed these Databases questions

Question

How are Capital Projects Funds controlled?

Answered: 1 week ago

Question

LO29.1 Describe the business cycle and its primary phases.

Answered: 1 week ago