Kirk

Restaurant Bill Challenge

photo credit: moriza This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (2) was titled “Introduction to C++”. 2.4: Write a program that computes the tax and tip on a restaurant bill for a patron with a $44.50 meal charge. The tax should be 6.75 percent of [...]

Share

Sales Tax

photo credit: Phillip This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (2) was titled “Introduction to C++”. 2.3: Write a program that will compute the total sales tax on a $52 purchase. Assume the state sales tax is 4 percent and the county sales tax is [...]

Share

Sales Prediction

photo credit: woodleywonderworks This programming challenge is from an initial C++ programming course I took in Fall 2007. The Chapter (2) was titled “Introduction to C++”. 2.2: The East Coast sales division of a company generates 62% of total sales. Based on that percentage, write a program that predicts how much the East Coast division [...]

Share

Space is Critical in CSS Selectors

photo credit: makelessnoise If you are having difficulty getting a particular CSS style to “appear”, one thing to look at is your selector. A tiny space can cause two different selections if you are not careful. For example, notice the single space difference between these two selectors: That presence or lack of a single space [...]

Share

How to change alternating table row colors

photo credit: Lee Carson Everyone loves the alternating table row colors on web pages. The same idea is applied to alternating blog comment styles. You can do it quite easily, and here are the three simple steps to do it. This technique involves PHP, CSS, and a touch of SQL. However, the logic and therefore [...]

Share