Schedule‎ > ‎

## Objectives

• Use `if`-statements with strings
• Work with Ohm's law.

^ top

Read the Scholastic Honesty Policy and Assignment Integrity policies of the syllabus. Here are some clarifications for this particular assignment:

• You are expected to work either by yourself.
• You must breadboard the circuits yourself.
• You may NOT look at another student's code until you complete and submit this assignment.
• You may get help from people, but only if they do not show or tell you the code to type.

^ top

## Project A: Voltage Levels

In this project we decide on high and low voltage levels.

#### Specifications

2. Save the new sketch using the name volt_level.
3. Modify the code to display "High voltage" if the measure voltage is greater than 2.7 volts, "Low voltage" if the reading is less than 2.2 volts, or "Indeterminate level" if the reading is between the two.
4. In a comment section in your code show the operation of your program for "High voltage", "Low voltage" and "Indeterminate level" examples.
5. Submit your `volt_level.ino` file as part of this assignment.

#### Example Output

```Voltage: 0.71
Low voltage
```

^ top

## Style Requirements

Remember to follow all the style rules from previous assignments, as well as the new rules we recently covered, including:

1. File comment block (see: File Comment Block)
2. Descriptive and meaningful variable names (see: Use Meaningful Names)
3. Using the variable naming conventions (see: Variable Names)
4. Indentation inside curly braces (see: Indentation)
5. Proper use of spaces around operators (see: Spacing Around Operators

^ top

The instructor will evaluate your assignment using the following criteria. Thus you should check your assignment against these criteria to maximize your score.

Each criteria represents a specific achievement of your assignment and has a scoring guide. The scoring guide explains the possible scores you can receive. Some scoring guides have a list of indicators. These indicators are a sign of meeting, or a symptom of not meeting, the specific criterion. Note that a single indicator may not always be reliable or appropriate in a given context. However, as a group, they show the condition of meeting the criterion.

For information on grading policies, including interpretation of scores, see the syllabus.

#### Project "volt_level"

• 5: Demonstrates mastery of the program
• Applies concepts from the lessons appropriately
• Meets all specifications
• Runs as required with no abnormal error conditions
• Generates correct output given correct input
• Correct file name
• 4: Has most of the functionality expected of the program
• Demonstrates some techniques from the lesson
• Attempts to meet all but one of the specifications
• Implementation seems more complicated than necessary.
• May have one minor error
• 3: Has some of the functionality expected of the program
• Demonstrates some techniques from the lesson
• Meets at least 1/2 of the specifications
• Implementation seems excessively complicated.
• May have 2-3 minor errors
• 2: Serious functional problems but shows some effort and understanding
• Meets less than 1/2 of the of the specifications
• Has a major error or many minor errors
• Implementation seems very convoluted
• Demonstrates few techniques from the lesson
• 1: Does not compile or wrong file turned in
• 0: Not turned in or not original work

#### Project Coding Style

• 3: Code is well-documented and follows the specified coding styles
• 2: Code has a minor documentation error
• 1: Code has some documentation errors
• 0: No apparent attempt to follow documentation standards or write documentation comments

Total possible: 20, plus extra credit

^ top

## How to Submit

Upload all project files to Canvas in the project folder that matches the name of this project. Include the following items for grading

1. `volt_level.ino`

You must submit all the files needed to complete your assignment. Your assignment must work as submitted. Remember to test and double check your files before submitting them. If you make a mistake, you can resubmit up to the deadline, but must resubmit all your assignment files.

^ top