I have my first assignment for structured and object oriented problem solving.

This is the problem and I wrote a program that had to include modules. I wanted to find out if what i did had any errors or if it is even written correctly at all. If its not what can I do to fix it? Thank you!

Plan the logic for a program that calculates the goen size a student needs for a graduation ceramony. The program uses 3 modules. The first prompts a user for and accepts the students height in inches. The seconed module accepts students weight and converts the students height to centimeters and weight to grams. Then it calulates the gown size by addin 1/3 of the weight in grams to the value of the height in centimeters. The programs output is gown size and. There are 2.54cm in an inch and 453.59 grams in a pound. The last module displays the message "End of job"

Im not sure what declarations are needed.


studentHeight ()
gownSize ()
endOfJob ()

studentHeight ()

ouput "Please enter students name"
input name
output " Please enter students height"
imput height


output "please enter students weight"
imput student weight
heightCenti = studentHeight * 2.54 / studentHeight
weightGrams = studentWeight * 453.59 / studentWeight
dividedWeight = weightGrams / 3
gownSize = dividedWeight + heightCenti
output gownsize

endOfJob ()
output END_LINE

5 Years
Discussion Span
Last Post by pyTony

Basically clueless, aren't we?

Is there a computer programming language involved, or do you only need to model/describe the system in object-oriented terms (such as using UML)?


I would not consider this your style of declaration without declared parameters to be so high level, brings my mind mostly memory of MIXAL programming form university time (symbolic assembler). In proper programming language you would not get access for example the name inputed.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.