

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


Assigned: Monday, Sept 8rd, 2008
program should look like this: Enter home team: UF Enter visitor: Miami Enter game Day: (mm/dd): 09/ Home Visitor Date
UF vs. Miami on 09/06/ You can assume team names are at most 5 characters. When you are reading from user you must stop reading when you encounter ‘end-of-line’ or the fifth character , whichever happens first. You will only get month and day information from user and append year “2008” to the end when printing. The example above illustrates this behavior. When printing; separate your columns with a ‘tab’ (\t) character so the corresponding fields in rows are aligned. Save this program as p1.c.
then prints the number with its digits reversed and the product of all digits. A session with the program should have the following appearance: Enter an integer number: 148 The reversal is: 841 The product of digits is: 32 You don’t have to handle the case when user enters a number with more or less than 3 digits. Save this program as p2.c.
program should receive two float numbers as input from the user.
equal.”
is smaller ”
number is smaller ”.
Save your program in a file called p3.c. Example 1: Enter Number 1: 32 Enter Number 2: - The second number is smaller. Example 2: Enter Number 1: 3 Enter Number 2: 3 Entered numbers are equal. Example 3: Enter Number 1: 13 Enter Number 2: 99 The first number is smaller. Instructions for submitting Assignment 3
tar cvf assign3.tar p1.c p2.c p3.c Let’s say you have stored your files in assign3 directory your “rain” machine. cd assign ls p1.c p2.c p3.c .. tar cvf assign3.tar p1.c p2.c p3.c ls p1.c p2.c p3.c assign3.tar ….