To convert the inputs to dollars and cents, we make use of a combination of multiplication and addition.
The program written in Python where comments are used to explain each line is as follows:
<em />
<em>#This gets input for the number of quarters</em>
quarters = int(input("Quarters: "))
<em>#This gets input for the number of dimes</em>
dimes = int(input("Dimes: "))
<em>#This gets input for the number of nickels</em>
nickels= int(input("Nickels: "))
<em>#This gets input for the number of pennies</em>
pennies= int(input("Pennies: "))
<em>#This converts the amount to dollars and cents</em>
dollars = quarters * 0.25 + dimes * 0.10 + nickels * 0.05 + pennies * 0.01
<em>#This prints the amount to 2 decimal places</em>
print("Amount ${:.2f}".format(dollars))
Read more about Python programs at:
brainly.com/question/22841107
Linear search
You implement this algorithm by iterating over each item, and checking if the item matches what you are searching for.
It is linear because it takes a linear amount of time to search for an item.
\bold{Answer:}
Instructions written in code that a computer follows are called software programs.
Explanation:
Technology is a method or skill of utilizing scientific information to reach the goals that include computers, machines and also different techniques.
Advantage of using technology
- Information can be quickly stored and shared very easily.
- Technology is used in all companies and businesses to achieve the tasks in a short period with efficiency,
- Technology has reduces the human errors that have helped to reduce the work stress.
Disadvantages of using technology
- Corruption and terrorism have increased due to advancements in technology.
- with the help of technology, digital and data manipulation is done.
- Too much connected or dependent on technology can cause several psychological problems such as narcissism,depressions, distraction.
- Using too much of technology can affect physical health such as vision problems, hearing problems, neck strain.