CSE 1320 – Intermediate Programming

CSE 1320 – Intermediate Programming
Homework 3
Due date: Sunday, September 21, 2014, 11:59pm.
Any assignments handed in late (but no more than 3 days) will incur a penalty of
50% deduction. I.e, no point will be given after 25th Sep.
Task 1:
Write a C program that will print a multiplication table. You don’t need to draw
table lines. Just separate the columns using a TAB.
Task 2:
Write a C program that will print the following pattern:
1******
12*****
123****
1234***
12345**
123456*
1234567
Task 3:
Let’s improve rock-paper-scissors game. In Korea, there is a very famous game
called Muk-jji-ppa, which is a variant of rock-paper-scissors game. Please use
switch statements at least once (it is required).
Please read the following Wikipedia page and watch the Youtube video to
understand the rule. You may have fun with Muk-jji-ppa!!
http://en.wikipedia.org/wiki/Muk-jji-ppa
https://www.youtube.com/watch?v=urZJtUYxgnc
You don’t need to implement a penalty like showing in the youtube clip 
The simple example will be like following (but no restriction).
Welcome to the game of Muk-jji-ppa.
You can press a ‘r’ button for Rock, ‘p’ for Paper, and ‘s’ for Scissors.
Press any key when ready
Rock! Paper! Scissors! r
Rock (You) vs Paper (Computer)
I am going to attack!! One! Two! Three!! r
Rock (You) vs Scissors (Computer)
You are going to attack!! One! Two! Three!! s
Scissors (You) vs Rock (Computer)
I am going to attack!! One! Two! Three!! p
Paper (You) vs Paper (Computer): You lose!!
Press any key if you want to play again or press 'q' to quit q
Good bye, it was fun. Play again soon.
Grading:
- The assignment will be graded out of 100 points. Task 1 and Task 2 are
worth 25 points each, and Task 3 is worth 50 points.
- A couple of homework submissions will be selected as the BEST program
and will be given extra 15 points more. The codes will be posted in the
course web site to share the nice codes with your friends.
- For the BEST program, I will consider readability, coding style, creative
codes and outputs.
How to submit:
1. The submission must include, as an attachment, a zip file containing three c
files for the three tasks. E.g., HW3_task_1.c, HW3_task_2.c, and
HW3_task_3.c.
2. You don’t have to check your program on Omega server for HW3.
3. Please submit it to BlackBoard (http://elearn.uta.edu).