Answer:
The algorithm:
Input days
sum = 0
for i = 1 to 
input text
sum = sum + text
end for
average = sum/days
print average
The program in pascal:
var days, sum, text, i:integer;
var average : real;
Begin
write ('Days: '); readln(days);
sum:=0;
for i := 1 to
do 
write ('Text: '); readln(text);
sum:=sum+text;
end;
average := (sum/days);
writeln ('The average text is' , average);
End.
Explanation:
This declares all variables
var days, sum, text, i:integer;
var average : real;
This begins the program
Begin
This gets the number of days from the user
write ('Days: '); readln(days);
Initialize sum to 0
sum:=0;
This iterates through the days
for i := 1 to
do begin
This gets the text for each day
write ('Text: '); readln(text);
This sums up the texts
sum:=sum+text;
End loop
end;
Calculate average
average := (sum/days);
Print average
writeln ('The average text is' , average);
End program
End.
Answer:
C. Process a risk acceptance for 2633 and remediate 3124.
Explanation:
There are various business risks. Some are inherited risks while other are risks are associated with nature of business. It is dependent on business owners that they want to accept risk or mitigate the risk. Risk acceptance is based on the strategy of the management. In the given scenario Accounting Prod Production has low risk 2633 which is accepted while 3124 is high risk which is remediated.
Int sum = 0;
int item = 0;
do
{
item;
sum = item;
if (sum > 4)
break;
} while (item < 5);
You will generate a compile error, as having (item;) as a statement on its own is invalid.
Answer:
Since the language isn’t stated, I’ll give answers in the two most-used (?) languages: Java and Python.
a) To print a’s value 3 times in the same line, in Java we would do:
System.out.print(a+a+a);
In Python, we would write:
print(a*3)
b) 2 times in different lines using one print statement
In Java, we would write
System.out.println(a+”\n”+a+”\n”+a);
In Python we would write:
print(a,a,a,sep=’/n’)
Hope this helps!
Are you trying to change the shape of an item within your program by entering the values into text boxes that become variables?
What language are you using?