PBT IF ELSE WHILE.docx - 4 Write a program using array and...

This preview shows page 1 - 7 out of 7 pages.

4. Write a program using array and structure for TWO (2) students that can accept their name and THREE (3) marks which are FP201, FP202 and FP203 from user. Then the program will calculate an average for each student based on input marks and will display student status to the table below: ** You are required to use if…else if statement to determine student status. (50 marks)
Image of page 1

Subscribe to view the full document.

1. Write a program using for statement to print even numbers between 1 – 20. (15 marks)
Image of page 2
2. Refer to Question 1, change the program to print odd numbers between 1 – 20 using while statement. (15 marks)
Image of page 3

Subscribe to view the full document.

3. Write a program using while and
Image of page 4
Image of page 5

Subscribe to view the full document.

Image of page 6
Image of page 7
  • Summer '16
  • Mashanum
  • Control flow, Imperative programming

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern