(solution) Attached are Pseudocode, copy of final project 1 of 2 which was

(solution) Attached are Pseudocode, copy of final project 1 of 2 which was

Attached are Pseudocode, copy of final project 1 of 2 which was done incorrectly (I got 53/100). Attach final copy 2 of 2, and a copy of the overview of the Problem Solving and Algorithm Design. I also attached my class discussion week 8 discussion 2 of my style of coding. This is PSEUDO(CODE) public static double average()FOR(i=0;(in);i++) Set Sum=sum+age[i] END FOR Return sum/nPublic static int printNames(String s) FOR(i=0;(in);i++) If(address[i]contains s) Write name[i] Increment count End if End for Return countpublic state void main (string args[])input nFOR(i=0;(in);i++) Input name, address, sex age for eachEnd forCompute average and printCompute residents on Penna. Ave and print names and countCompute resident on 3rd Street and print count the corrected CodeFinal Project 2Your final project will be to analyze, design, and document a simple program that utilizes a good design process and incorporates sequential, selection and repetitive programming statements(i.e loops) as well as at least one function/subprogram call and the use of at least three arrays. Quite often requirements change as in this case. Your program must write all the information collected from the user to an ASCII file. The specific problem you need to solve for the final project is: Take Note: This is very similar to last week’s assignment But the requirements have changed.Design a program that will allow a user to Input a list of his Classmates’s Name along with their Gender(Male, Female), Marital Status(Married,Single), Age and City where they reside. You must first collect all the information from the user. Then write all the information collected to an ascii file. Finallly, count the number of Male and Female classmates and count the Marital Status – Married and Single and write these counts also to the ascii file also, after the list of information.There are 4 components of your submission including:Analysis- Demonstrates your thought process and steps used to analyze the problem. Be sure to include the required input and output and how you will obtain the required output from the given input? Also, include your variable names and definitions. Be sure to describe the necessary formulas and sample calculations that might be needed. Talk about the functions you plan to use and how you will use arrays. Be sure to talk about the types of programming statements that will be used on why.Program Design- A detailed, clear description of the program you are building. It should show the flow and logic of your program.Test plan – For your test plan show me what you think your file will look like for 5 classmates.Pseudocode- Provide pseudocode of your overall design that fulfills the requirements of the projectAll of these components should be placed in word document for submission.Additional details about the program you need to write:Class sizes vary, however you should design to be able to enter at least 40 Classsmates, but be flexible enough to handle less thatn 40.Your test case should have at least 5 classmates.Be sure to separate some functionality into functions or subprograms. Having all functionality in the main module is not a good design.Your design should consider how to indicate the classmate entry is complete.Carefully consider the best data type for each of your variables. (e.g. when to use Float versus Integers versus Strings)