0% found this document useful (0 votes)
43 views1 page

Laboratory Exercises Set 3b. Basic Input/Output

The document provides instructions for a C programming lab exercise to write a program that takes user input in kilograms and outputs the equivalent weight in pounds and grams. The program must include comments in the header with the file name, author, date, and problem description. It should prompt the user to enter a weight in kilograms, then output the converted values to pounds and grams along with their units. A screenshot of the running code with the desktop as background is also required.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
43 views1 page

Laboratory Exercises Set 3b. Basic Input/Output

The document provides instructions for a C programming lab exercise to write a program that takes user input in kilograms and outputs the equivalent weight in pounds and grams. The program must include comments in the header with the file name, author, date, and problem description. It should prompt the user to enter a weight in kilograms, then output the converted values to pounds and grams along with their units. A screenshot of the running code with the desktop as background is also required.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 1

SCHOOL OF ENGINEERING AND ARCHITECTURE

NAME: DATE PERFORMED:  

Section: DATE SUBMITTED:

Laboratory Exercises Set 3b. Basic Input/Output

LabExercise2C:

1. Write a C program given the problem below.


2. On the program header comment: include File name exercise number, author,
date, a short description of problem.
3. Filename: LabExer3B_yourname.c
4. SUBMIT/UPLOAD THE SOURCE CODE( the .C FILE)

Sample program header comment:

/* Program: LabExer3B: Compute for amount due.


Author: Juan Dela Cruz
Date: Sept 2, 2021
Description: Compute for amount due based on a problem (include problem
statement).
*/

Write a program in C that takes kilograms as input, and display the equivalent value in
pounds and grams.

Sample Input
Enter weight in kilograms: 70

Output:
Weight in pounds is 154.324lbs and grams is 70000g

Provide a screenshot of the code running with your desktop as background.

You might also like