, , , ,

[SOLVED] Cop 2220 assignment 1

$25

File Name: Cop_2220_assignment_1.zip
File Size: 197.82 KB

Categories: , , , , Tags: , , , ,
5/5 - (1 vote)

1- Write a program that uses one printf() call to print your first name and last name on one line,
uses a second printf() call to print your first and last names on two separate lines, and uses a
pair of printf() calls to print your first and last names on one line.The output should look
similar to this: (20 points )
Will Smith < First print statement
Will < Second print statement
Smith < Still the second print statement
Will Smith < Third and fourth print statements2- Write a program that creates an integer variable called toes.
a) Have the program ask the user for an input value to variable toes. (10 points).b) Have the program calculate what twice toes is and what toes squared is (10 points).c) The program should print all three values, identifying them (10 points).NOTE: You can only use the concepts that we have learned in class so far. Both problems can be solved
with the current knowledge of programming that we gained in class through the lectures. No out-of-scope
solutions would be accepted.

Reviews

There are no reviews yet.

Only logged in customers who have purchased this product may leave a review.

Shopping Cart
[SOLVED] Cop 2220 assignment 1
$25