Question: CSC 2 9 2 UNIX & C Programming Chapter 2 Assignment ALL CSC - 2 9 2 PROGRAMS MUST BE DONE IN UNIX USING vi

CSC292 UNIX & C Programming
Chapter 2 Assignment
ALL CSC-292 PROGRAMS MUST BE DONE IN UNIX USING vi EDITOR
Type the program dollarConversion. c on page 34 #7(We went over this in the class). This program will teach you the basic c program structure. Save the file as dollarConversionFirstinitialLastname.c
Now you need to do one by yourself - write the program #8 on page 35 and run it.
The current balance after each payment is calculated as the following:
interestThisMonth = currentLoanBalance ***0.06;
principlePaidThisMonth =386.66- interestThisMonth
(where 386.66 should be the variable that holds the amount from user input)
currentLoanBalance -= principlePaidThisMonth
Please repeat this 3 times by hand to see if you can get the correct numbers as shown in the book before code in the program. Save the file as paymentFirstinitialLastname.c
Write the following C program:
celsius2fahrenheit should print a conversion table from Celsius to Fahrenheit, from 0 to +100 degrees
Celsius, in steps of 5 degrees. Save the file as celsius2FahrenheitaFirstinitialLastnam. c Sample output:
\table[[Celsius,Fahrenheit],[-----,32],[5,41],[10,50],[15,59],[20,68],[25,77],[30,86],[35,95],[40,104],[45,113],[50,122],[55,131],[60,140],[65,149],[70,158],[75,167],[80,176],[85,185],[90,194],[95,203],[100,212]]
Hint: This program should be written exactly as the way it is written in C++ except the Input/Output part. You will need to use a for loop to accomplish this. Remember the control variable in the "for" statement must be declared before the for loop.
CSC 2 9 2 UNIX & C Programming Chapter 2

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 Programming Questions!