Lab2_program_selection_control_technique_problem_solving.doc

Lab2_program_selection_control_technique_problem_solving.doc...

This preview shows page 1 - 3 out of 4 pages.

FAKULTI TEKNOLOGI KEJURUTERAAN ELEKTRIK & ELEKTRONIK UNIVERSITI TEKNIKAL MALAYSIA MELAKA COMPUTER PROGRAMMING BEEA 1343 SEMESTER 1 SESSION 2018/2019 LAB 2: PROGRAMS ON SELECTION CONTROL TECHNIQUES (PROBLEM SOLVING) DATE NAME OF STUDENT 1. 2. 3. NAME OF INSTRUCTORS 1. 2. 3. EXAMINER’S COMMENTS VERIFICATION STAMP TOTAL MARKS Document Number Issue Number N/A 13.03.2015 Revision Number Total Pages 4.0 (A.I.A. Rahman) 12 2
Image of page 1

Subscribe to view the full document.

4.2 Problem solving design Section 1: Program Design 1 1. Write a C++ program based on the following requirements: Write a program that accepts a number between 1 to 12 and display the name of the corresponding month. For example if the user types '1' the program will display 'January', if the user types '2' the program will display 'February' and so on. If user types in numbers other than 1 to 12, program will display an invalid message to warn the user. You are required to use switch for the month selection part. Copy and paste your program code and submit it with your lab report.
Image of page 2
Image of page 3
  • Spring '14
  • Body mass index, Obese Class

{[ 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