Preview

Algorithm: Flowchart and Trailer Record

Better Essays
Open Document
Open Document
1328 Words
Grammar
Grammar
Plagiarism
Plagiarism
Writing
Writing
Score
Score
Algorithm: Flowchart and Trailer Record
Student Name Syed Haseeb Hashmi Registration # FA11-BCS-075
Course Title Design and Analysis of Algorithm
Assignment # 1
Submitted To Sir Tanveer Ahmed Siddiqui
Due Date 19-03-2013

For Odd Role Number Group

Q1. How does a flowchart help a programmer in a program development?
Ans. Flowcharts provide the visual representation of a concept and make it clear. A flow chart serves as a blueprint of the program. Flowcharts helps a programmer organize his/her thoughts in a logical order and their presentation. Program development without graphics may be less effective. In big projects it gets difficult to keep things together. Flowcharts provide flexibility, so that you can make changes and restructure the project as you move further and, according to requirement. Flowcharts act as a guide during the analysis and program development phase. Moreover they are also helpful in debugging process.
Q2. Draw a flowchart of the logical steps needed to produce a printed listing of all students over the age of 20 in a class. The input records contain the name and age of the students. Assume a sentinel value of 99 for the age field of the trailer record.
Sol.

Q3. The first 20 records in a data set are to be read and printed. Draw a flowchart for the algorithm to do this job. Make sure that the processing stops after the twentieth record.
Sol.

Q4. For the employees problem of Question 40 ( even group Q3), we want to count and print the number of only male employees in the age group of 25 to 30. Assume that the input records contain SexCode and Age fields to provide this information. Draw a flowchart for the algorithm to perform this job.
Sol.

Q5. A set of examination papers, which have been graded with scores form 0 to 100 is to be searched to find how many of them are above 90. The total has to be printed. Prepare a flowchart to do this job.

You May Also Find These Documents Helpful

  • Satisfactory Essays

    Acc/531 Week 4

    • 646 Words
    • 3 Pages

    6. A statistician wanted to determine if the demographic variables of age, education, and income…

    • 646 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Pt1420 Unit 2 Study Guide

    • 1286 Words
    • 6 Pages

    4 Describe the following methods of automated data capture. Give an example, in each case,…

    • 1286 Words
    • 6 Pages
    Good Essays
  • Satisfactory Essays

    * Lines 12 and 13 ask the user for the next participants age and gets the next…

    • 313 Words
    • 2 Pages
    Satisfactory Essays
  • Good Essays

    ElizabethFlaimFP

    • 1289 Words
    • 7 Pages

    Problem Definition: Design a program that allows a user to input a list of family members, along with their age and the state where they live. The program will determine and print the average age of the user’s family. The program will also print the names of any family member that lives in Texas. The program design should also allow the user to enter at least 50 family members.…

    • 1289 Words
    • 7 Pages
    Good Essays
  • Good Essays

    Pt1420 Unit 3 Essay

    • 966 Words
    • 4 Pages

    4- Select two same age elderlies per gender. Select two same age adults per gender. Do the same with the Children.…

    • 966 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    · Determine the number of boys and girls in the class and create a bar graph or pie chart to display the information.…

    • 147 Words
    • 1 Page
    Satisfactory Essays
  • Satisfactory Essays

    Theo 104 Quiz

    • 569 Words
    • 3 Pages

    A data flow diagram represents a physical, rather than logical, view of an accounting information system.…

    • 569 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    INSTRUCTIONS TO CANDIDATES • • • • • • • Write your name, Centre Number and Candidate Number in the boxes above. Answer all the questions. Use blue or black ink. Pencil may be used for graphs and diagrams only. Read each question carefully and make sure you know what you have to do before starting your answer. Do not write in the bar code. Do not write outside the box bordering each page. WRITE YOUR ANSWER TO EACH QUESTION IN THE SPACE PROVIDED. ANSWERS WRITTEN ELSEWHERE WILL NOT BE MARKED.…

    • 2245 Words
    • 9 Pages
    Good Essays
  • Good Essays

    BA L2 Unit 14

    • 449 Words
    • 2 Pages

    1.3 Text and diagrams can be used to explain data more thoroughly or can be used to get a point across in a more concise way. Diagrams may be used to make your data more appealing to the audience they are intended for. To give an additional visual representation to your text could perhaps iterate it more clearly, or could perhaps add an impact that text alone can not offer. This can also be used to highlight key points in the data, or for showing any trends or patterns.…

    • 449 Words
    • 2 Pages
    Good Essays
  • Satisfactory Essays

    Mm207 Final

    • 620 Words
    • 2 Pages

    3. Jonathan is a 42 year old male student and Mary is a 37 year old female student thinking about taking this class. Based on their relative position, which student would be farther away from the average age of their gender group based on this sample of MM207 students?…

    • 620 Words
    • 2 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Is a flowchart more valuable in documenting the logic of a program than just the coded instructions in the programming language? Explain your answer.…

    • 503 Words
    • 3 Pages
    Satisfactory Essays
  • Satisfactory Essays

    Pt1420 Unit 3 Essay

    • 502 Words
    • 3 Pages

    On Thursday, I download and print all the reading assignment materials, what allow me to read the information all along the week. I read the materials assigned for this week. Through my reading I learned the two methods in order to organize the ideas before programming; flowcharting and pseudocode. Also I stalled the program “Dia” and I could work on it, I do not think that it is a good program; I think it could be more intuitive, my plan is to develop something that can help me to work with flowcharts.…

    • 502 Words
    • 3 Pages
    Satisfactory Essays
  • Good Essays

    Vark Analysis Paper

    • 845 Words
    • 4 Pages

    Graphs and diagrams are also helpful when it comes to comparing data. When it is written out in words it can be confusing whereas a chart both can accurately compare and measure over a certain period of time. Visual learners process information the best through graphical tools which allows them to interpret data in a logical manner. Students with this learning style should formulate their notes in an orderly fashion, so that they would be able to visualize how the pieces of the puzzle are connected.…

    • 845 Words
    • 4 Pages
    Good Essays
  • Good Essays

    Throughout all three lessons the students will be provided with varying levels of activities aimed at enhancing the skills mentioned above. For example, students may be asked to identify age differences based on people age data that was recorded on a number line. Eventually, students will also strive to understand why skip counting can be considered a more efficient strategy than counting up when working on problems. It should be understood that when the problem includes numbers with a wide range between the two, that the type of confusion and mistake making that might happen with traditional the count up strategy can be surpassed with the use of skip counting.…

    • 882 Words
    • 4 Pages
    Good Essays
  • Satisfactory Essays

    Process Analysis Graphic OrganizerThinking about the sequence is the most important part of writing about processes. Use the chart below to clarify your thinking about the sequence of steps in a process.Title: The Brownies Name: Juan José Costa 10th “C”…

    • 556 Words
    • 3 Pages
    Satisfactory Essays