Answer a sample solution follows flowchart pseudocode

  • No School
  • AA 1
  • CountKangaroo8536
  • 66
  • 89% (18) 16 out of 18 people found this document helpful

This preview shows page 47 - 52 out of 66 pages.

We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Systems Architecture
The document you are viewing contains questions related to this textbook.
Chapter 3 / Exercise 12
Systems Architecture
Burd
Expert Verified
We have textbook solutions for you!
The document you are viewing contains questions related to this textbook.
Systems Architecture
The document you are viewing contains questions related to this textbook.
Chapter 3 / Exercise 12
Systems Architecture
Burd
Expert Verified
returnfinishUp()output “End of program”returnc. Modify the months and days program to prompt the user for a month number and display the corresponding sentence, for example, January has 31 days.
49
returnfinishUp()output “End of program”returnd. Prompt a user to enter a birth month and day, and continue to prompt until the day entered is in range for the month. Compute the day’s numeric position in the year. (For example, February 2 is day 33.) Then, using parallel arrays, find and display the traditional Zodiac sign for the date. For example, the sign for February 2 is Aquarius.
50
x = x – 1endwhilenumPosition = numPosition + dayx = SIGN_SIZE – 1while numPosition < SIGN_RANGES[x]x = x – 1endwhileoutput “The Zodiac sign for ”, month, “/”, day, “ is ”, SIGNS[x]output “Enter a month and a day >> ”input month, dayreturnfinishUp()output “End of program”returnPerforming Maintenance1.A file named MAINTENANCE06-01.txt is included with your downloadable student files. Assume that this program is a working program in your organization and that it needs modifications as described in the comments (lines that begin with two slashes) at the beginning of the file. Your job is to alter the program to meet the new specifications.

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture