Answer:
Note: a) If the length of the string is odd there will be two middle characters.
Explanation:
b) If the length of the string is even there will be one middle character. There was a problem connecting to the server. Please check your connection and try running the trinket again.
Answer:
cin >> name;
cout << "Greetings, " << name << "!!!" << '\n';
Explanation:
The single instruction that can inverts bits 5 and 6 in the bl register is xor bl,1100000b.
<h3>What is single instruction?</h3>
Single Instruction is a term that connote all the data streams are said to be processed though the use of the same compute logic.
Note that in the case above, the single instruction that can inverts bits 5 and 6 in the bl register is xor bl,1100000b.
Learn more about bits from
brainly.com/question/19667078
#SPJ12
Answer:
Following is the program in the python language
hr = input("input hours:") #Read input by user
h1 = float(hr)
rate =input("Input Rate:") #Read RATE BY USER
r1 = float(rate) #CONVERT INTO FLOAT
if h1 <= 40: #check condition
t=h1 * r1
print (t) #DISPLAY
else :#else block
t1=(40 * r1) + (h1 -40) * r1 * 1.5
print('The pay is :')
print(t1)#DISPLAY
Output:
input hours:45
Input Rate:10.50
The pay is :
498.75
Explanation:
Following are the description of program
- Read the value of hour in the "hr" variable and convert into the float value in the "h1" variable .
- Read the value of rate in the " rate" variable and convert into the float value in the "r1" variable .
- After that check the condition of hour if block if the hour is less then or equal to 40 then it multiplied h1 *t1 otherwise else block will be executed and print the value of pay .