Answered step by step
Verified Expert Solution
Question
1 Approved Answer
I am having issues because I really want to get this program down, but I truly don't even know how to start. I will post
I am having issues because I really want to get this program down, but I truly don't even know how to start. I will post the instructions here but this is for C++ or Cplusplus. Thank you.
Application of the Switch Statement: Interpret bands on resistor Resistors are electrical components designed to limit the flow of electricity between two points. This resistance is measured in Ohms (22). . An example of a common resistor is shown below: Source: commons.wikipedia.org The four colored bands on the resistor can be used to calculate the resistance in kS2(or 1000 12). For example 2 2 1 5% First Digit red Tolerance gold Second Digit red Multiplier black A 220 Resistor 22x1 Ohms with a tolerance rating of +5% Source: simple.wikipedia.org The first band is the first significant digit of the resistance value; The second band is the second significant digit of the resistance value; The third band is the decimal multiplier; The fourth band indicates the tolerance; this is expressed in terms of plus or minus (+/-) the calculated value (the nominal value). This assignment was developed for Palms for CS For example, suppose we have the sequence RED-VIOLET-GREEN-GOLD. We would use the following table to help calculate the resistance: Color Digit Multiplier Tolerance (%) Black 0 10 Brown 1 10 +/- 1 Red 2 102 +/- 2 N Orange 3 3 103 Yellow 4 104 Green 5 5 105 +/-0.5 Blue 6 106 +/- 0.25 Violet 7 107 +/- 0.1 Gray 8 108 White 9 10 Gold 10-1 +/-5 10-2 +/- 10 Silver No Color +/- 20 The nominal value could be calculated as 27 x 10% = 2700000 = 2700 k22, with a tolerance of +5 percent. As another example, consider BLUE-RED-RED-GOLD. The nominal value could becalculated as 62 x 10= 6200 = 6.2 k2, with a tolerance of +5 percent. Exercise Create a new C++ Project called Resistor. Write a C++ program to input four- band color patterns and produce output listing the colors along with the resistance value in k12. Think carefully about the input there are many ways to allow the user to input the colors. Submission 1. your source code 2. Testing Script file that indicates you tested the program thoroughly. Did you exercise each path in your code
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started