CSCI 261 - Programming Concepts - Fall 2020

Lab 2A - Math Equations

This lab is due by Tuesday, September 15, 2020, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.


Pair Programming



For this lab, you will be working with a partner to practice pair programming and proper programming design. You and your partner will implement any two of these equations of your choosing.

# Major Equation Formula
1 Chemistry Ideal Gas Law Ideal Gas Law
2 Civil Engineering Average Acceleration Average Acceleration
3 Electrical Engineering Ohm's Law Ohms Law
4 Engineering Physics Newton's Law of Universal Gravitational Newton's Law of Universal Gravitational
5 Math Distance Distance
6 Math Volume Sphere Volume of a Sphere
7 Mechanical Engineering Deflection Deflection
8 Mechanical Engineering Heat Transfer Heat Transfer
9 Mechanical Engineering Stress Stress
10 Mining Shear Stress Shear Stress
11 Physics Coulomb's Law Coulombs Law
12 Physics Force Force
13 Physics Velocity Velocity

For each equation, you must:

Now before you get started doing any coding, take out a piece of paper and write out the pseudocode to solve this task. Once you have your pseudocode, determine who is going to drive first and get to coding! We will switch drivers every 5 minutes so listen for the cue to switch positions.

At the end of this lab, your program output should look similar to below:

Enter the acceleration: 4.33
Enter the mass: 9.3
The force is: 40.269
Enter the width: 4
Enter the height: 2
The area is: 8

Lab Submission



You will submit your solution to this lab with the rest of Set2. Detailed instructions for doing this are posted in Assignment 2.


This lab is due by Tuesday, September 15, 2020, 11:59 PM.
As with all labs you may, and are encouraged, to pair program a solution to this lab. If you choose to pair program a solution, be sure that you individually understand how to generate the correct solution.