int IsAbundant(int n)
{
int divisorSum = 0;
for (int i = 1; i < n; i++) {
if ((n % i) == 0) {
divisorSum += i;
}
}
return divisorSum > n;
}
int main()
{
int number = 0;
do {
printf("Enter a number (0 to quit): ");
scanf_s("%d", &number);
if (IsAbundant(number)) {
printf("%d is abundant!\n", number);
} else
{
printf("%d is not abundant.\n", number); }
} while (number > 0);
return 0;
}
Answer:
1. Pseudo Code:
START
ENTER STRING 1
INPUT STRING 1
ENTER STRING 2
INPUT STRING2
PRINT STRING 1 + STRING 2
STOP
1. FILE (Python)
Please add below code in the file:
# name:
# Date: 13-10-2020
# Description: This program is about entering two strings and printing them together
def main():
a = input("string 1:")
b = input("String 2:")
print(a + b)
main()
3. Project Mortem Review:
1. Which IDE have you used?
Ans: Pycharm
2. Where is a file stored in Windows by default?
Ans: c://users/username/PycharmProjects/All files
3. Did you encounter any error?
No, the project ran successfully
4. What was the purpose of the project?
To learn how to concatenate two strings
5. Will you innovate more on this, and what?
Yes, I will split it and make a dictionary with the meaning of each word, and I will use an Oxford university dictionary library to pick the meaning from.
Explanation:
Please check the answer section.
Answer: b) Registers
Explanation:
Registers are type of memory for computer that has instruction storage for transmitting it quickly and instantly by CPU(central processing unit).It hold the location of the instruction through which execution operation takes place.According to present location, next instruction for execution is prepared.
- Other options are incorrect because arithmetic and control unit(ALU) is for performing evaluation of arithmetic and control instruction,shifters is for shifting data bits and compiler is used for compilation of program.
- Thus, the correct option is option(b).
Answer:
The program then displays to the screen (OUT) the result of taking the remainder (modulus) of dividing the second number into the first number. For example, if the first number entered was 14 and the second number entered was 5 then the program would display 4.
Explanation:
Hope this helps!!!
Answer: $149.46 is the answer! Good luck! :)
Explanation: