Answer to Question #182504 in C++ for Fuad

Question #182504

1. Write an pseudo code and flowchart.

A. Receive 3 numbers and display them in. ascending order from smallest to largest.

B. Add the even numbers between 0 and any positive integers number given by the user.

C. Read 10 integers from the keyboard in the range 0-100, and count how many of them are larger than 50, and display this result.

D. Take an integer from the user and display the factorial of the number.


1
Expert's answer
2021-04-17T18:46:36-0400
# task A
input A,B,C
X  = get  min element in  set{A,B,C}
Z = get maximum element in set {A,B.C}
Y = of set{A,B,C} substract set {X,Y}
output X,Y,Z


# task B
input N
sum = 0
i = 0 
while i< N
    begin 
    sum := sum +i
    i := i+2
    end
output sum 
 


# task C
input array a[10]
each element in arrray 0<a[n]<100
count = 0
for each each element in arrray a
    begin 
    if element >50 then count := count+1
    end
output count

#task D
input n 
result = 1 
for i := 1 to n
    begin
    result:= result*i
    end
output result 

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

Fuad Endris
18.04.21, 10:11

Thank you Very much. My rate this website ☆☆☆☆☆

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS