.equals not ==
Record your participation in Piazza clicker question Review1 Q1
Very simplified life insurance underwriting algorithm:
The basic cost for one year of life insurance for a man is $1000. For a woman it is $750. Certain factors can raise or lower the cost. If the person is less than 30, the cost is decreased by 10%. If the person smokes, the cost is increased by 50%. If the person lives in New York City or Los Angeles, the cost increases by $100. Execute the increase or decreases in the order given. Sex, age, smokes, lives
Write the pseudocode. Pay special attention to whether you should use if/else or if/if
The practice exam is not comprehensive and does not include as many problems as the actual exam. Its purpose is so you can be familiar with the format before the day of the exam.