Archive for C++

You are browsing the archives of C++.

Pizza Pi

photo credit: callme_crochet This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (3) was titled “Expressions and Interactivity”. I post these old academic challenges for a few reasons. One is to demonstrate my programming learning, experience, and progression. Another reason is to make sure my code and [...]

Share

Convert Centigrade to Fahrenheit

photo credit: saturnism This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (3) was titled “Expressions and Interactivity”. I post these old academic challenges for a few reasons. One is to demonstrate my programming learning, experience, and progression. Another reason is to make sure my code and [...]

Share

How Many Calories?

photo credit: Pink Sherbet Photography This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (3) was titled “Expressions and Interactivity”. I post these old academic challenges for a few reasons. One is to demonstrate my programming learning, experience, and progression. Another reason is to make sure my [...]

Share

How Many Widgets?

photo credit: Iman This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (3) was titled “Expressions and Interactivity”. 3.6: The Yukon Widget Company manufactures widgets that weigh 9.2 pounds each. Write a program that calculates how many widgets are stacked on a pallet, based on the total [...]

Share

Average Rainfall

photo credit: quapan This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (3) was titled “Expressions and Interactivity”. 3.4: Write a program that calculates the average rainfall for three months. The program should ask the suer to enter the name of each month, such as June or [...]

Share

Stadium Seating

photo credit: Daveybot This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (3) was titled “Expressions and Interactivity”. 3.2: There are three seating categories at a stadium. For a softball game, Class A seats cost $15, Class B seats cost $12, and Class C seats cost $9. [...]

Share

Distance per Tank of Gas

photo credit: billaday This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (2) was titled “Introduction to C++”. 2.11: A car with a 20-gallon gas tank averages 21.5 miles per gallon when driven in town and 26.8 miles per gallon when driven on the highway. Write a [...]

Share

Total Purchase

photo credit: Phillie Casablanca This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (2) was titled “Introduction to C++”. 2.8: A customer in a store is purchasing five items. The prices of the five items are: Price of item 1 = $12.95 Price of item 2 = [...]

Share

Annual Pay

photo credit: Material Boy This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (2) was titled “Introduction to C++”. 2.6: Suppose an employee gets paid every two weeks and earns $1700.00 each pay period. In a year the employee gets paid 26 times. Write a program that [...]

Share

Average of Values

photo credit: psd This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (2) was titled “Introduction to C++”. 2.5: To get the average of a series of values, you add the values up and then divide the sum by the number of values. Write a program that [...]

Share