Design a function named feettoinches that accepts a number


This is the question

One foot equals 12 inches. Design a function named "feettoinches" that accepts a number of feet as an argument, and returns the number of inches in that many feet.

Use the function in a program that prompts the user to enter a number of feet and then displays the number of inches in that many feet.

This can be written in psuedocode

This is what I need to do and I am a little lost

1. Create four modules with the last one being a programmer created type Function type module.

2. The first module is the Main Module. It DECLARES a local variable of type Integer and calls the second and third module.

3. The second module DISPLAYs a question for the software user requesting the number of feet and INPUTs the answer

4. The third module DECLARES a local variable used to store the result returned by the function in the fourth module and uses the word SET followed by the local variable to call the function passing a parameter of the variable name used represent the number of feet, it also DISPLAYs the function's returned result.

5. The last module is a programmer created function. It DECLARES one local variable and uses a formula to converts feet to inches.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: Design a function named feettoinches that accepts a number
Reference No:- TGS02910626

Expected delivery within 24 Hours