Question: MODULE 6 (Coding Number 1 and 2) That was good! Now that you know the important elements, data types, consoles, and operators that you can

MODULE 6 (Coding Number 1 and 2)

That was good! Now that you know the important elements, data types, consoles, and operators that you can use in writing a C program, lets go deeper by applying what youve learned. Write a C program that would solve the problems below.

1. Using only variables a and b, create a C program that will swap the contents of these two variables.

2. A particular type of packing carton costs P 2.50 per square foot at the bottom and the sides, and P 5.00 per square foot for the top. Write a program to calculate the cost of such a shipping crate if the user supplies the carton dimensions.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!