You are given paper transaction voucher and you are to enter the amounts and present a report. Names are not tracked only the amounts. However, you need to report various amounts. 1. The amount of donations from members. 2. The amount of donations from non-members. 3. Total amounts.

Computer Networking: A Top-Down Approach (7th Edition)
7th Edition
ISBN:9780133594140
Author:James Kurose, Keith Ross
Publisher:James Kurose, Keith Ross
Chapter1: Computer Networks And The Internet
Section: Chapter Questions
Problem R1RQ: What is the difference between a host and an end system? List several different types of end...
icon
Related questions
Question
### Recording Donations: Pseudo Code Configuration

**Problem Statement:**

Your favorite club has asked you to track donations they have received for each month.

**Task:**

You are given paper transaction vouchers and you are to enter the amounts and present a report. Names are not tracked, only the amounts. However, you need to report various amounts:

1. The amount of donations from members.
2. The amount of donations from non-members.
3. Total amounts.

It is not necessary to report each individual amount, just the three resulting amounts. The report should also include the month and year for which the report is prepared.

**Objective:**
Please configure the pseudo code for a small program that will accomplish this task.

**Instructions:**

1. Please give the pseudo code for the following problem. 
2. You must follow the conventions covered in class for pseudo code.

---

**Example Pseudo Code Structure:**

```
// Initialize variables
member_donations = 0
non_member_donations = 0
total_donations = 0
month = input("Enter the month:")
year = input("Enter the year:")

// Read through transaction vouchers
WHILE more_vouchers_exist:
    amount = read_voucher_amount()
    type = read_voucher_type() // "member" or "non_member"
    
    IF type == "member":
        member_donations = member_donations + amount
    ELSE IF type == "non_member":
        non_member_donations = non_member_donations + amount
    
    // Add to total regardless of type
    total_donations = total_donations + amount

// Output the report
PRINT "Donation Report for ", month, " ", year
PRINT "Total Donations from Members: ", member_donations
PRINT "Total Donations from Non-Members: ", non_member_donations
PRINT "Overall Total Donations: ", total_donations
```

**Notes:**
- Ensure to validate the inputs for month and year.
- Comments are provided to clarify each step.
- Adjust the pseudo code structure if different conventions are covered in class.

By following the pseudo code conventions, you can effectively track and report the donations received by your favorite club for any given month and year.
Transcribed Image Text:### Recording Donations: Pseudo Code Configuration **Problem Statement:** Your favorite club has asked you to track donations they have received for each month. **Task:** You are given paper transaction vouchers and you are to enter the amounts and present a report. Names are not tracked, only the amounts. However, you need to report various amounts: 1. The amount of donations from members. 2. The amount of donations from non-members. 3. Total amounts. It is not necessary to report each individual amount, just the three resulting amounts. The report should also include the month and year for which the report is prepared. **Objective:** Please configure the pseudo code for a small program that will accomplish this task. **Instructions:** 1. Please give the pseudo code for the following problem. 2. You must follow the conventions covered in class for pseudo code. --- **Example Pseudo Code Structure:** ``` // Initialize variables member_donations = 0 non_member_donations = 0 total_donations = 0 month = input("Enter the month:") year = input("Enter the year:") // Read through transaction vouchers WHILE more_vouchers_exist: amount = read_voucher_amount() type = read_voucher_type() // "member" or "non_member" IF type == "member": member_donations = member_donations + amount ELSE IF type == "non_member": non_member_donations = non_member_donations + amount // Add to total regardless of type total_donations = total_donations + amount // Output the report PRINT "Donation Report for ", month, " ", year PRINT "Total Donations from Members: ", member_donations PRINT "Total Donations from Non-Members: ", non_member_donations PRINT "Overall Total Donations: ", total_donations ``` **Notes:** - Ensure to validate the inputs for month and year. - Comments are provided to clarify each step. - Adjust the pseudo code structure if different conventions are covered in class. By following the pseudo code conventions, you can effectively track and report the donations received by your favorite club for any given month and year.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Recommended textbooks for you
Computer Networking: A Top-Down Approach (7th Edi…
Computer Networking: A Top-Down Approach (7th Edi…
Computer Engineering
ISBN:
9780133594140
Author:
James Kurose, Keith Ross
Publisher:
PEARSON
Computer Organization and Design MIPS Edition, Fi…
Computer Organization and Design MIPS Edition, Fi…
Computer Engineering
ISBN:
9780124077263
Author:
David A. Patterson, John L. Hennessy
Publisher:
Elsevier Science
Network+ Guide to Networks (MindTap Course List)
Network+ Guide to Networks (MindTap Course List)
Computer Engineering
ISBN:
9781337569330
Author:
Jill West, Tamara Dean, Jean Andrews
Publisher:
Cengage Learning
Concepts of Database Management
Concepts of Database Management
Computer Engineering
ISBN:
9781337093422
Author:
Joy L. Starks, Philip J. Pratt, Mary Z. Last
Publisher:
Cengage Learning
Prelude to Programming
Prelude to Programming
Computer Engineering
ISBN:
9780133750423
Author:
VENIT, Stewart
Publisher:
Pearson Education
Sc Business Data Communications and Networking, T…
Sc Business Data Communications and Networking, T…
Computer Engineering
ISBN:
9781119368830
Author:
FITZGERALD
Publisher:
WILEY