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!

Search & Filtering

Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:

1. Write an algorithm to allow users to enter a quantity of numbers until a negative number is entered. Then display the highest and lowest number entered.

1.1 Use a while-loop to determine the answer.


Nested List Indexing


Write a program to print the index of the given number N in the list of tuples.


Sample Input 1 

4

Sample output 1

0 1 


Sample Input 2

15

Sample output 2

1 1


List of Lists to List of Tuples

Write a program to convert the list of lists to a list of tuples.

Sample Input1

3

1  2 3 4 

10  20 30

5 10 15 20

Sample Output 1

[(1,2,3,4), (10,20,30), (5,10,15,20)]


Remove N in all Tuples


Write a program to remove the given number N in all the tuples if it present.


Sample Input 1

3

Sample output 1

[(1,2,4,5,6), (2,4,6,8), (1,5,7)]


List of Unique Tuples


Write a program to print the lists which contain the unique elements in the given list of lists.


Sample Input 1

3

1  2  3

5 10 15

10 20 10 30

Sample output 1

[[1,2,3],[5,10,15]]


Character Frequency


Write a program to compute the frequency of characters other than space.


Sample Input 1

Pop up

Sample Output 1

o: 1

p: 3

u: 1


Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:

1. Display every number even number from 2 to 50 along with its value double and tripled.

1.1 Use a while-loop.


Do the necessary planning (IPO) and write an algorithm in pseudo code for the following:

1 Display every number even number from 2 to 50 along with its value double and tripled.

1.1 Use a for-loop.


1.1 Rewrite the following using the specified looping structure/s:

1.1.1 Use pre-test (for-loop) and a post-test (do-loop until).

num1 = 20

do while x <= -15

display “x = “, x

x = x - 3

loop


1.1.2 Use pre-test (do-while) and a post-test (do-loop until).

for value = 5 to -15 step - 3

display “x = “, x

next value


1.1 In each of the following cases do the following:  Write only the specified structures, do not write the whole algorithm. Make use of the pre-test loop (for-loop and do-while) in pseudocode using the variable names as provided.  The number of times that the loop will execute,  The value of the counter control variable after execution of the loop and e.g. Use a counter variable called count1 that has an initial value of 0 and a final value of 35

(1) a. for count1 = 0 to 5 b. 6 times c. 6 a. count1 = 0 while count1 <=5 b. 6 times c. 6

1.1.1 Use a counter variable called studentCount that has an initial value of 50, a final value of 0, and a decrement of 2.

1.1.2 Use a counter variable called countX that has an initial value of 31, a final value of 15, and an increment of -3.


LATEST TUTORIALS
APPROVED BY CLIENTS