0% found this document useful (0 votes)
141 views

C/C++ Programming Problem

The document outlines 6 programming problems for a midterm project. The problems involve writing a program, flowchart, and analysis to: 1) Calculate the area and perimeter of a rectangle given height and width; 2) Convert Fahrenheit to Celsius; 3) Calculate the volume of a box given length, width, and height; 4) Solve a linear equation for x given values of a and b; 5) Calculate income, deductions, and net income given hours worked; and 6) Calculate the total cost of pants and shirts purchases given the quantities of each item. Students must complete all 6 problems and submit them one week before the midterm exam.

Uploaded by

Ian Offemaria
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)
141 views

C/C++ Programming Problem

The document outlines 6 programming problems for a midterm project. The problems involve writing a program, flowchart, and analysis to: 1) Calculate the area and perimeter of a rectangle given height and width; 2) Convert Fahrenheit to Celsius; 3) Calculate the volume of a box given length, width, and height; 4) Solve a linear equation for x given values of a and b; 5) Calculate income, deductions, and net income given hours worked; and 6) Calculate the total cost of pants and shirts purchases given the quantities of each item. Students must complete all 6 problems and submit them one week before the midterm exam.

Uploaded by

Ian Offemaria
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

MIDTERM PROJECT in PROGRAMMING 1

1. Write a program analysis, a flow chart and a program that will accept a height and a width.
Determine and display the area and perimeter of a rectangle. Used the formula Area =
height*width and Perimeter = 2*(height+width).

2. Write a program analysis, a flow chart and a program that converts the input degrees
Fahrenheit into its degrees Celsius equivalent using the formula degreesC = 5*(degreesF-32)/9.
Display the convert value.

3. Write a program analysis, a flow chart and a program that will accept a length, a width and a
height to determine the volume of a box. Display the volume. Used the formula volumeBox =
length*width*height.

4. Write a program analysis, a flow chart and a program that will ask the user to accept a value for
a and b for the linear equation ax+b=0. Determine and display the value for x in the linear
equation.

5. Write a program analysis, a flow chart and a program that will ask the user to accept the
number of hours work. Determine and display the income, the deduction and net income of the
employee. Used the formula income = numberHoursWork*750.00, deduction =
income*(10/100) and netIncome = incomededuction.

6. Write a program analysis, a flow chart and a program that will ask the user to accept the
number of pants and number of shirts he/she wants. Determine and display the total amount of
money to pay the pants and shirts purchase in a store. Used the formula totalAmount =
(numberPants*700.00) + (numberShirts*315.00)

Deadline: One week before MIDTERM EXAM

You might also like