Welcome to Assignments Writing

Your Trusted Partner in Term Paper Writing

At Assignments Writing, we’re a team of passionate educators and skilled writers committed to supporting students in their academic journey.

CI 222 CU Flowchart Pseudo Codes and Operation Numbers Project

CI 222 CU Flowchart Pseudo Codes and Operation Numbers Project

ANSWER

Part A: Flowchart

Here is a flowchart for finding the greatest of three different integers: a, b, and c.

css
Start
|
V
Input a, b, c
|
V
+---------+
| |
| a > b? |
| / \ |
| / \ |
| Yes No|
| | |
| V |
| a > c?|
| / \ |
| / \ |
| Yes No|
| | |
| V |
| a |
+---------+
|
V
Output a
|
V
End

Part B: Outcome of Pseudo Codes

css
a = 1
While a < 10
print in a line the value of a
a = a + 4
End while
Print "bye"

Output:

bash
1
5
9
bye
css
a = 1
While a < 10
if a mod 2 is 0 then
print in a line “a is even”
else
print in a line “a is odd”
end if
a = a + 3
End while
Print “bye”

Output:

csharp
a is odd
a is even
a is odd
a is even
bye
css
a = 2
If a mod 2 is 0 then
While a < 10
print in a line the value of a
a = a + 1
End while
else
While a < 5
print in a line the value of a
a = a + 1
End while
End if
Print “bye”

Output:

bash
3
4
bye

Part C: Operation Number

css
a = 1
While a < 6
print in a line the value of a
a = a + 1
End while
Print “bye”

Operation Number: 12

css
a = 1
While a < 12
print in a line the value of a
a = a + 3
End while
Print “bye”

Operation Number: 5

css
a = 3
While a < 7
if a mod 2 is 0 then
print in a line “a is even”
else
print in a line “a is odd”
end if
a = a + 1
End while

Operation Number: 8

vbnet
a = 3
If a mod 2 is 0 then
While a < 9
print in a line the value of a
a = a + 1
End while
else
print in a line “this is else part”
End if
Print “bye”

Operation Number: 6

  1. Nested Loop Explanation
css
a = 1
While a < 3
b = 1
While b < 4
print in a line the value of b
b = b + 1
end while
a = a + 1
End While

Output Explanation: This code contains nested loops. The outer loop runs while a is less than 3, and the inner loop runs while b is less than 4. In each iteration of the outer loop, the inner loop prints the value of b from 1 to 3, and then a is incremented by 1. This pattern continues until the outer loop condition a < 3 is no longer satisfied. The output will be as follows:

bash
1
2
3
1
2
3
bye

CI 222 CU Flowchart Pseudo Codes and Operation Numbers Project

QUESTION

Description

 

 

Part A. Create a flowchart for the  following problem.

Input: three different integers: a, b, c.

output: The greatest from the given three numbers.

For simplicity, we assume that all numbers are different.

Part B.

Find out the outcome of the following pseudo codes

1.  [3 marks]

a = 1

While a < 10

print in a line the value of a

a = a + 4

End while

Print “bye”

2. [4 marks]

a = 1

While a < 10

if a mod 2 is 0 then

print in a line “a is even”

else

print in a line “a is odd”

end if

a = a + 3

End while

Print “bye”

3. [4 marks]

a = 2

If a mod 2 is 0 then

While a < 10

print in a line the value of a

a = a + 1

End while

else

While a < 5

print in a line the value of a

a = a + 1

End while

End if

Print “bye”

Part C: 

1. [ 4 marks]

Compute the operation number for the following code block:

a = 1

While a < 6

print in a line the value of a

a = a + 1

End while

Print “bye”

2. [4 marks]

Compute the operation number for the following code block:

a = 1

While a < 12

print in a line the value of a

a = a + 3

End while

Print “bye”

3. [5 marks]

Compute the operation number for the following code block:

a = 3

While a < 7

if a mod 2 is 0 then

print in a line “a is even”

else

print in a line “a is odd”

end if

a = a + 1

End while

4. [5 marks]

Compute the operation number for the following code block:

a = 3

If a mod 2 is 0 then

While a < 9

print in a line the value of a

a = a + 1

End while

else

print in a line “this is else part”

End if

Print “bye”

6. [7 marks]

Explain the following nested loop with output.

a = 1

While a < 3

b = 1

While b < 4

print in a line the value of b

b = b + 1

end while

a = a + 1

End While

Place Your Order Here

Our Service Charter


1. Professional & Expert Writers: We only hire the best. Our writers are specially selected and recruited, after which they undergo further training to perfect their skills for specialization purposes. Moreover, our writers are holders of master’s and Ph.D. degrees. They have impressive academic records, besides being native English speakers.

2. Top Quality Papers: Our customers are always guaranteed papers that exceed their expectations. All our writers have +5 years of experience. This implies that all papers are written by individuals who are experts in their fields. In addition, the quality team reviews all the papers before sending them to the customers.

3. Plagiarism-Free Papers: All papers provided are written from scratch. Appropriate referencing and citation of key information are followed. Plagiarism checkers are used by the Quality assurance team and our editors just to double-check that there are no instances of plagiarism.

4. Timely Delivery: Time wasted is equivalent to a failed dedication and commitment. We are known for timely delivery of any pending customer orders. Customers are well informed of the progress of their papers to ensure they keep track of what the writer is providing before the final draft is sent for grading.

5. Affordable Prices: Our prices are fairly structured to fit all groups. Any customer willing to place their assignments with us can do so at very affordable prices. In addition, our customers enjoy regular discounts and bonuses.

6. 24/7 Customer Support: We have put in place a team of experts who answer all customer inquiries promptly. The best part is the ever-availability of the team. Customers can make inquiries anytime.

Format & Features

Our Advantages

How It Works

1. Fill Order Form
2. Make payment
3. Writing process
4. Download paper

Fill in the order form and submit all your files, including instructions, rubrics, and other information given to you by your instructor.

Once you complete filling the forms, complete your payment. We will get the order and assign it to a writer.

When your order is completed, it’s assigned to an editor for approval. The editor approves the order.

Once approved, we will upload the order to your account for you to download.  You can rate your writer or give your customer review.

What Clients Said

{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Mercy M
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

5
Jane L
{

I am very satisfied! thank you for the quick turnaround. I am very satisfied! thank you for the quick turnaround.I am very satisfied! thank you for the quick turnaround.

4.5
Rayan M

LET US DELIVER YOUR ACADEMIC PAPER ON TIME!

We are a freelance academic writing company geared towards provision of high quality academic papers to students worldwide.

Open chat
1
Scan the code
Hello
Can we help you?