Prepare 2.0 : Modularization
Your assignment is to create three structure charts representing how you would solve three programming problems. In these examples, you are not concerned with how you would implement each individual function. Instead, you want to identify what the function will do (Cohesion), how information will pass between them (Coupling), and how the functions call each other.
Problem 1: Compute grade
The first problem is to create a structure chart for a program to convert a number grade (ex: 88%) into a letter grade (ex: B+). Consider the following example (input is Underlined):
What is your grade in percent: 88
Your grade is B+
Problem 2: Compute tithing
The second problem is designed to help a child set aside part of his allowance for tithing. This program will prompt the user for his allowance, figure out how much is left after tithing is taken out, and display the results.
What is your allowance? $10.50
You get to spend: $9.45
Problem 3: Currency
The final problem is designed to help an international traveler convert his money to various currencies. After prompting him for the amount to be converted, the program will display how many British pounds, Euros, or Japanese Yen he will have:
How much money do you want to convert? $100.00
British Pounds: £61.50
Euros: €70.09
Japanese Yen: ¥8079.06
Please draw out your structure charts on a sheet of paper and take a picture of it.
Make sure the quality of the picture is sufficient to read the text.
Create a single .docx or .pdf file with your name as the filename.
Submit this through I-Learn.