--%>

write a program using simple loop, decision processing

Objective:  The purpose of this problem is to gain experience with the principles necessary to write a program using simple loop, decision processing, counters and accumulators

Save the Barns, a bi-partisan political action committee, needs a Contributions report to provide:

Summary information regarding the political affiliation and gender of the contributors

Input:  The input file will contain an unknown number of contributor records.  You will create your own data file to test your program.  Call your file contributers.dat. 

Assume all the data in the input file has already been validated.

The record format is:         

Field                                                       Type                                       Length

Contributor name                                                Character                              25

Address                                                  Character                              25

City                                                        Character                              15

State                                                       Character                              2

Zip                                                          Character                              5

Party (D, I, or R)                                  Character                              1

Gender (F or M)                                   Character                              1

Contribution                                         Numeric                                 7              ZZZ9.99

Total 80 spaces

 

Output:  The output will be to the screen.  Include headings that contain a company name, a report name, and date.  There will be 1 blank line after the report name line, followed by a summary report. 

 

The summary report should include record count, total contribution and average contribution for the following groupings: (Be sure to identify each number printed.)

1)       Men                                        7)  Democratic Women 

2)       Women                                  8)  Republican Men

3)       Democrats                            9)  Republican Women

4)        Republicans                         10) Independent Men

5)       Independents                       11) Independent Women

6)       Democratic Men                  12) Overall

 

Special processing:  Prompt the user to see if they want to only process this report for contributions over $500. If the response is yes, then change the report name appropriately and process only input records with contributions over $500. Otherwise process all the records.

Logic development includes the following.

                1) Hierarchy chart of the modules for this program

2) Program diagram or design document to list the Classes and objects for this program.

3) Create a Chapin Chart to show the detailed logic for this program.

4) Create a screen layout for the output.  (80 wide X 24 lines)

5) Create a Test Plan for this program.

   Related Questions in Programming Languages

  • Q : BAT files and shell scripts Using the

    Using the Web as a resource for your investigation, find out and explain what BAT files and shell scripts contain, and what they are used for. In the light of your findings, discuss why an operating system would provide both a graphical user interface

  • Q : Identify Customers in SQL The company

    The company wish to provide an incentive of free shipping to such customers who have not returned for 2 months. Build a procedure named PROMO_SHIP_SP which determines these customers are and then updates the BB_PROMOLIST table accordingly. The procedure employs the be

  • Q : Image reconstruction in CT using MATLAB

    What is Image reconstruction in CT using MATLAB?

  • Q : Explain Object reference Object

    Object reference: It is a reference to an object. Languages other than Java employ terms like pointer or address or. It is significant to keep the difference clear between an object and its reference. The variable like argo

    Q : Scripting Language Programming

    Hi Assignment Team, Please find attachment of my assignment. Please advise if there is any unclear information Regards, King

  • Q : Explain Timesharing system Timesharing

    Timesharing system: It is an operating system which shares processor time among multiple processes by assigning each a time slice. Once a process's time slice has finished or expired, the other procedure is given a possibility to run.

  • Q : Asynchronous and synchronous postback

    Differeniate asynchronous postback and synchronous postback?

  • Q : ASP.NET Session handling How to set

    How to set Session time out in ASP.NET. I tries changing in config file but still facing issue. Please help..

  • Q : Explain Wrapper classes Wrapper

    Wrapper classes: The Java's primitive types are not of object types. The wrapper classes are stated in the java.lang package. They comprises of a class for each and every primitive type: Boolean, Byte, Double, Float, Integer, Long & Short and Char

  • Q : Problem on linear equations using Matlab

    Use Matlab to solve the following system of linear equations:2x + y + 3z = 12x + 6y + 8z = 36x + 8y + 18z = 5Capture Matlab code and the result in a text file.