Answer:
Answered below
Explanation:
#Answer is written in Python programming language
hrs = int(input("Enter hours worked for the week: "))
dep = int(input ("Enter number of dependants: "))
pay = 16.78
ovpay = pay * 1.5
if hrs <= 40:
wage = hrs * pay
else:
wage = hrs * ovpay
ss = wage * 0.06
fedtax = wage * 0.14
statetax = wage * 0.05
dues = 10
if dep >= 3:
ins = 35
net_pay = wage - ss - fedtax - statetax - dues - ins
print(wage)
print ( ss, fedtax, statetax, dues, ins)
print (net_pay)
Answer:
30
Explanation:
Java - Using a method, how do I "write a program whose input is a character and a string, and whose output indicates the number of times the character appears in the string. Your program must define and call the following method that returns the number of times the input character appears in the input string.
public static int countCharacters(char userChar, String userString)"
These are the correct answers to the following questions:
<span>
1. Which stride number should you use to reverse the order of characters in a slice?
A. -1
2. What is forking?
c. Taking code from a currently developed project to make a different version
3. What is a bug?
B. An error in a program's code
4. The turtle program is a/an _________ included with Python that can be imported for use in Python code.
c. Module
5. What is a graphical user interface (GUI)?
b. The windows, buttons, menu items, icons, and dialog boxes with which a computer user interacts
6. Which of the following is an advantage of using variables?
D. It makes it less likely that an error will be introduced into the code.
7. What would you expect as the result of the code "happy" + "birthday"?
D. "happybirthday"
8. When you make copies of a class, those copies are called _________ of the class.
D. Instances
9. What are methods?
A. The functions associated with a class
10. What are comments meant to do?
C. Explain what some code is doing
11. Which of the following types of software hides its code and doesn't let other people change it?
D. Proprietary software
12. If you want to save a program so you can run it later, you should create the program in which window?
b. The text editor window
13. A _____________ is a clickable graphical object that makes something happen when the user clicks it, usually with the left mouse button.
A. Button
14. A/an ____________ development method is one in which the development does not follow a predictable or planned course of action.
A. Informal
15. What are shortcuts useful for?
A. Making it easier and quicker to open a file
</span>
Answer:
Physics, Quantum Mechanics
Explanation:
Light is a stream of photons with no weight. If you want to dig deeper in this mysterious phenomena, you should study physics and quantum mechanics. Physics takes up things like the theory of relativity, which can be useful in studying spacetime and how light travels through it, and quantum mechanics, being the study of matter in an atomic level, should help you get an understanding on how photons of light travel and why they behave so strangely.