Pseudocode with sequential, selection and arrays

posted by .

Analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements as well as at least one function call and the use of at least one array. Each of these items (sequential code, at least one selection statement, at least one loop, at least one function call, at least one array and associated processing of the array) is required, and must be present in code.
Also design a program that will allow a user to input a list of family members along with their age and state where they reside. Determine and print the average age of your family and print the names of anyone who live in Texas. You may assume that there are no more than 100 living relatives in your family.

Project Deliverables:

•The first delivery is the project plan which provides your problem statements, problem analysis, and how it will comply with the project specifications.

•The final delivery will be your completed project design along with your code comments and comprehensive test plan.
I know a test plan is just redoing the code with different variables but first I must master the code to do the test

This is what I did so far.

Declare a main module
Initialize an array fn of two dimension character. fn[100][50];
Declare an array of character. char state[100];
Initialize another array c and Initialize to low
Declare another array age.
Input total number of records in n
Input value for array fn, age and state in a Loop till n

Calculate the total age in the avg variable
Print total average by dividing the avg by n
Loop until n
compare the value of state to "lowa" or "LOWA"
Print value which fulfills the condition

  • Pseudocode with sequential, selection and arrays -

    In general, the pseudocode is a very good start. Here are just a few checkpoints.

    Where are you storing the age? In an array, or you dispose of it as you read?

    "Initialize another array c and Initialize to low "
    "low" has not been declared. Is it 0, or -1?

    You could give some more details how you manage the arrays.

    What are you trying to achieve?
    - average age?
    - youngest age?

    You'll need to account for the state="texas" as well.

Respond to this Question

First Name
School Subject
Your Answer

Similar Questions

  1. Pseudocode programming

    I need a currency conversion application. It does not have to be written in an actual programming language, just the pseudocode as well as the elements listed below. Complete requirements analysis Design Verification Validation and …
  2. Sequential and Selection Processing Control Struct

    You are an accountant setting up a payroll system for a small firm. Each line of the table in Appendix G indicates an employee’s salary range and corresponding base tax amount and tax percentage. Given a salary amount, the tax is …
  3. IT 210

    I need help with Sequential and selection processing control structures Appendix G
  4. programming

    Write a simple ATM program. Ask the user to enter their account number, and then print their beginning balance. (Just make one up). Then ask them if they want to make a deposit or a withdrawal. Depending on their selection, call a …
  5. IT

    A project has been defined to contain the following list of activities along with their required times for completion. Activity No. Activity Time (Weeks) Immediate Predecessors 1 Colect requirements 2 - 2 Analyze processes 3 1 3 Analyze …
  6. programming

    Step 1: Design a flowchart or write pseudocode for a program that allows a user to enter 12 numbers, then displays all of the numbers (in the order they were entered) as well as the largest number and the smallest number. Step 2: Implement …

    This question asks about your Independent Reading selection. You may use your reading selection to help you answer the question. What impact did your Independent Reading selection have on you as a reader?
  8. programming

    Design a program that calculates and displays the amount of money you would have if you invest $5000.00 at 2 percent simple interest for one year. call a function and pass the needed data to do the calculation and return the result
  9. Program Design and Development

    Design the pseudocode for a program that outputs numbers in reverse order from 10 down to 1 using a loop?
  10. English

    What does this Mean? This question asks about your Independent Reading selection. You may use your reading selection to help you answer the question. Compare and contrast your Independent Reading selection with one or two other selections

More Similar Questions