First, you divide $71,000 by 12, to get the salary per month.
$71,000 / 12 = $<span>5,916.66.
Next, you divide the amount in a month by 2, to see how much money is paid for each half of a paycheck.
$5,916.66 / 2 = $2,958.33
Since the payment for every paycheck is $2,958.33, the answer is D.</span>
<u>Answer:</u>
<em>void main ( ) </em>
<em> { </em>
<em> int counter; </em>
<em> cout<<""Even numbers between 1 to 20 are:""<<endl ; </em>
<em> //Method 1
</em>
<em> for (counter = 1; counter <= 20; counter++) </em>
<em> { </em>
<em> if ( counter%2 == 0) </em>
<em> {
</em>
<em> cout<<counter<<""\t""<<endl ; </em>
<em> } </em>
<em> } </em>
<em>//Method 2 – simplest one
</em>
<em>for (counter = 2; counter <= 20;) </em>
<em> { </em>
<em> cout<<counter<<""\t""<<endl ; </em>
<em>counter = counter + 2;
</em>
<em> </em>
<em> }
</em>
<em>
</em>
<em> return 0; </em>
<em>}
</em>
<u>Explanation:</u>
In this, Method 1 runs a for loop and check whether each number is divided by 2. If yes, then printed otherwise it is skipped.
In the second method, it runs for loop only for even numbers. <em>This is obtained by incrementing the counter by 2.
</em>
Answer:
Please find attached file for complete answer solution and explanation.
Explanation:
Answer:
The program in Python is as follows:
str1 = " SOFTware".lower()
str2 = "hardware ".upper()
str3 = str1+str2
lent = len(str3)
print(lent)
Explanation:
(1) Convert " SOFTware" to lower
str1 = " SOFTware".lower()
(2) Convert "hardware " to upper
str2 = "hardware ".upper()
(3) Combine both strings
str3 = str1+str2
(4) Calculate the length of the new string
lent = len(str3)
(5) Print the calculated length
print(lent)