Question: Assignment # 9 Goals: > This lab gives students more experience in - Top - down Design and procedural abstraction . - Good style

Assignment \#9
Goals:
> This lab gives students more experience in
- Top-down Design and procedural abstraction.
- Good style programming
Background Information
Roman Numbers. The Roman Number System has seven digits as follows:
Numbers are formed according to the following rules:
1. Only numbers up to \(\mathbf{3999}\) are represented.
2. As in decimal system, the thousands, hundreds, tens, and ones are expressed separately.
3. The numbers \(\mathbf{1}\) to \(\mathbf{9}\) are expressed as shown. As you can see, an I preceding a \(\mathbf{V}\) or \(\mathbf{X}\) is subtracted from the value, and you can never have more than three I's in a row.
4. Tens and hundreds are done the same way, except that letters \(\mathbf{X},\mathrm{L},\mathbf{C},\mathbf{D},\mathbf{M}\) are used instead of letters \(\mathbf{I},\mathbf{V},\mathbf{X}\).
Requirement:
Write an algorithm and then a structured program that converts a positive integer into Roman Number System. Your program shall take, as input, a number such as 1978, and convert it to its equivalent in the Roman Number System as MCMLXXVIII.
[10 marks] Presentation/Style: Organization, readability, descriptive identifier, indentation, bracket placement.
[70 marks] Correctness: Program works without bugs. Appropriate us of methods.
[20 marks] Documentation: Internal and external
Assignment \ # 9 Goals: > This lab gives students

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!