Introduction



Identifiers are descriptive names that are mapped to locations in the computer's memory. Once a memory location is given a specific name, you can refer to that location using the identifier rather than the numeric address. This system of associating a name with a memory location allows you to choose a name that is meaningful to the contents of a particular memory location. Read Problem Solving Basics and Computer Programming By Ron Pasko and Matt Bauer

Assignment


Use lucidchart in your google drive.
  1. Create a flowchart for the following problem:
    Now, on your own, work through the three steps of decomposition, flowcharting, and pseudocode for the following example.You have a store that sells lemons and oranges. Oranges are $.30 each and lemons are $.15 each. Your program should get from the user the numbers of oranges and lemons he/she wants and outputs the total amount of money they owe you.




  2. Create a flowchart for the following problem:
    Given 2 numbers, determine whether or not their sum is greater than 100.




  3. Create a flowchart that:
    will take as input the type of restaurant the user ate at, the cost of the meal, the number of people in his/her party, and how good the service was. Determine the dollar amount of the tip.

    Base Tip:
    Diner: 12%
    Good Restaurant: 15%
    Fancy Restaurant: 20%

    Additions/Subtractions:
    Poor Service: -2%
    Good Service: +0%
    Excellent Service: +2%
    1-5 in party: +0%
    6-10 in party: +3%
    more than 10: +5%