Programming & Computer Science Answers

C++ 9913
Python 5288
Java | JSP | JSF 3611
C 1680
C# 1362
Computer Networks 989
Algorithms 652
Databases | SQL | Oracle | MS Access 641
HTML/JavaScript Web Application 588
Other 537
Visual Basic 358
Assembler 209
Software Engineering 202
AJAX | JavaScript | HTML | PHP 166
MatLAB 150
MatLAB | Mathematica | MathCAD | Maple 124
Action Script | Flash | Flex | ColdFusion 112
UNIX/Linux Programming 89
Web Development 73
Excel 36
ASP | ASP.NET 23
Delphi | Pascal 21
Perl 16
Prolog 9
Functional Programming 9
MathCAD 5
Wolfram Mathematica 4
WPF 4
Ruby | Ruby on Rails 3
NodeJS Web Application 2

Questions answered by Experts: 26 876

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

Give an example of a while loop, then provide the equivalent do-while loop and for loop. Then give a different example of a do-while loop along with the equivalent while loop and for loop. Finally give an example of a for loop along with the equivalent while loop and do-while loop. Use your examples to illustrate the advantages and disadvantages of each looping structure and describe those disadvantages and advantages.
Use an example to briefly explain the features of a structured program.

On October 22nd 2020, the Exeter Express and Echo newspaper published its weekly Niner puzzle. The puzzle was as follows.

Each number from 1 to 9 represents a different letter. Solve the clues and insert the letters in the appropriate squares to discover a word which uses all nine letters.

• 452589 — gives an animal;

• 658785 — gives a vegetable;

• 7378719 — gives a mineral


Each part of this problem addresses an aspect of computer organization.

a. List the components that are part of the CPU.

b. List the components that are part of the system bus.

c. Reorder the list of data storage elements below according to computer system

memory hierarchy, from closest to the CPU to farthest from the CPU.

hard disk, level 1 cache, DVD ROM, level 2 cache, registers, level 3 cache, and

main memory
Write the pseudocode for a program that will continue prompting a user for a value whilst the total of all values remain less than 100. The program must keep track of the number of times the loop executes and display the number of times the loop executed once the loop had finished executi
Write a boolean function that returns False if the name has more than 4 letters.
What is while loop?
“To help students determine whether they qualify for a supplementary exam, students can enter
their final module mark and exam mark on a webpage. If the student obtained more than 30% for
their exam mark and a final mark of less than 50%, the student will be informed that he/she
qualifies for a supplementary exam.”
Q.3.1 Write the pseudocode that will prompt a user for the required information and
accurately represent the logic contained in the scenario provided at the
beginning of the question.
Write the pseudocode for an application that will:
a. Prompt a user for three numbers.
b. Store the values entered by a user in an array as they are provided by
the user.
c. Ask a user if they would like to search for a value:
i. If the user wishes to search for a value, the user needs to be
prompted for a value to search for. If the value is found, a
notification needs to be provided to the user.
d. Use a for loop to cycle through the arrays in order to calculate and
display the total of the values stored in the array
For this exercise, use the following 2D array, which is already declared and initialized in your programming environment below.

34 38 50 44 39
42 36 40 43 44
24 31 46 40 45
43 47 35 31 26
37 28 20 36 50
Your task is to find the average of all values in the 2D array.

Note: Be sure that your program accounts for arrays of any size, not just arrays that are 5 x 5. Your program will be tested against arrays of size n by n. It should work for any square array, not just the one shown. You should also use for loops in your program, not while loops.
LATEST TUTORIALS
APPROVED BY CLIENTS