Answer:
#include <iostream>
using namespace std;
int main () {
// for loop execution
int semester_fees=8000;
int b=1;
cout<<"there are 5 years or 10 semester fees breakdown is given below"<<endl;
for( int a = 1; a <=5; a++ ) {
semester_fees = semester_fees*1.03;
cout<<"Semester fees for each of semester"<<b++<<"and"<<b++<<"is:$"<<semester_fees<<endl;
}
return 0;
}
Explanation:
code is in c++ language
Fees is incremented yearly and i have considered only two semester per year
Answer:
Here is the Python program which has a function sum_scores:
def sum_scores(score1, score2, score3, score4):
sum = score1 + score2 + score3 + score4
print(sum)
sum_scores(14,7,3,0)
Explanation:
- Method sum_scores takes four arguments, score1, score2, score3, score4.
- The sum variable adds these four scores and stores the value of their addition.
- Lastly print statement is used to print the value stored in sum variable which is the value obtained by adding the four scores.
- Last statement calls the sum_scores method and passes four values to it which are 14,7,3,0
- The output of the above program is:
- 24
- If you want to use return statement instead of print statement you can replace print(sum) with return sum. But in order to display the sum of the scores you can replace sum_scores(14,7,3,0) with print(sum_scores(14,7,3,0))
- The program along with the output is attached as a screenshot.
Answer:
See explanation
Explanation:
Replace the ____ with the expressions in bold and italics
1) <em> return km</em>
return km returns the result of the computation
2) = <em>convert_distance(my_trip_miles)</em>
convert_distance(my_trip_miles) calls the function and passes my_trip_miles to the function
3) + <em>str(my_trip_km)</em>
The above statement prints the returned value
4) +str(my_trip_km * 2)
The above statement prints the returned value multiplied by 2
Answer:
2^7= 128
Explanation:
An instruction format characterizes the diverse part of a guidance. The fundamental segments of an instruction are opcode and operands. Here are the various terms identified with guidance design: Instruction set size tells the absolute number of guidelines characterized in the processor. Opcode size is the quantity of bits involved by the opcode which is determined by taking log of guidance set size. Operand size is the quantity of bits involved by the operand. Guidance size is determined as total of bits involved by opcode and operands.
Answer:
The best option is A).True
Explanation:
This is because, according to the statement, it is possible to uncover a potential threat in the risk governance domain and quickly assess its impact using the risk evaluation domain in an IT environment. The risk IT framework is used in an IT environment for security of domains, the business involved, etc.