Wk03_data_types_exercise_ASSIGNMENT

Wk03_data_types_exercise_ASSIGNMENT - COMP100 Programming...

Info icon This preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
COMP100 Programming Fundamentals Week 3 Lab Exercise using different data- types Question 5-9 is due at the beginning of next class (just demonstration) 1. Create a program that prompts the user for her first name, middle initial and last name. The program will display the user name three times using the following three formats: first name and last name first name middle initial and last name last name, first name and middle initial For inputs Barack H Obama Barack Obama Barack H Obama Obama, Barack H 2. Write a program that prompts the user for the number of siblings his has. The program should display a message, “I also have 4 siblings” (assuming that the user enters 4). 3. Write a program that prompts the user for two integers. The program will display the result of summing and finding the difference. (If the user enters 8 and 3, the display should be 8 + 3 = 11 and 8 – 3 = 5) 4. Write a program that prompts the user for the number of siblings his has. The program should display a message, “I have 4 siblings” (assuming that the user enters 3).
Image of page 1

Info icon This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

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