Answer:
Please Find attached c++ code file.
Explanation:
- Ask User to enter highway number.
- Check if highway is primary or auxiliary.
- Check if highway number is even / odd.
- Find Primary high number for an auxiliary highway
Check if highway is primary or auxiliary.
Use if condition to check if the entered number is in between 0 and 99.If it's true than the highway is primary otherwise it's an auxiliary highway.
Check if highway number is even / odd.
To check if a number is even or odd we use simple modulo formula. In mathematics modulo returns the reminder of a division operation on two numbers.If modulo of a number and 2 is equal to zero than that number is an even number other wise its an odd number.
Find Primary high number for an auxiliary highway
As mentioned in the question last two digits of highway number is the number of primary high.
To Find last two digits of number apply modulo operation on highway number and 100. it will provide last two digits of number specifying our primary highway.
Answer:
Class SavingsAccount( ):
annual_interest_rate
def.__init__(self, savings_balance):
self.savingsBalance = savings_balance
def calculatMonthlyInterest( ):
self.savingsBalance += (self.savingsBalance * annual_interest_rate) /12
return self.savingsBalance
def setInterestRate_(self, value):
self.annual_interest_rate = value
Explanation:
The python class above is used to create a savings account data for a customer, with methods to change the static interest rate and to calculate the monthly interest rate.
Yes the ansewer is c bc you can look it up!
Answer:
In almost all the windows applications that handle the text, like in Microsoft word, you can make use of the ASCII code for inserting the blank character or the non-breaking space. This can be done by pressing the Alt and then typing 255 from the numeric keypad, and finally releasing the ALT key. And please keep in mind that this will not work if you will be using the ordinary number key.
For even whitespace you need to use the spacebar and check the character count with whitespaces to be even.
Explanation:
Please check the answer section.