You could assign values to variables and break it up into if else-if else statements.
<span>Pseudocode:</span>
if a < b and b < c:
print("increasing")
else if a > b and b > c:
print("decreasing")
else:
print("neither")
Hope this helps.
The total number of chars in each string is basically the size of each string.
Using JAVA:
String[] arr = {"hello", "my", "name", "is", "Felicia"}; int count = 0; for(int i = 0; i < arr.length; i++) { count = count + arr[i].length(); System.out.println("Characters in " + arr[i] + ": " + count); }
Output:
<span>Characters in hello: 5
Characters in my: 7
Characters in name: 11
Characters in is: 13
Characters in Felicia: 20</span>
Answer:
Assuming this is Python, I would do something like the following:
Explanation:
hourWage= float(input ("What is your hourly wage?: "))
regularHours= float(input ("How many regular hours did you work this week?: "))
overtimeHours= float(input ("How many overtime hours did you have this week?: "))
overtimeWage= (1.5*hourWage)
totalWeeklyPay= (hourWage*regularHours)+(overtimeHours*overtimeWage)
print= ("Your total weekly pay is: " ,totalWeeklyPay)
I hope this works!
Primary :) i took the test
Plz make me brainliest