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

Write a function that displays the contents of an array in a predefined format with 

the value of index 0, displayed last.



Write a function that reads real (fractional) numbers, 𝑥1, 𝑥2, … , 𝑥𝑁 from the keyboard 

into an array of N, starting from index 0. The numbers are read after a prompt.



Write a function that reads real (fractional) numbers, 𝑥1, 𝑥2, … , 𝑥𝑁 from the keyboard 

into an array of N, starting from index 0. The numbers are read after a prompt.



Write a program that reads a number and prints all of its binary digits: Print the remainder

number % 2, then replace the number with number / 2. Keep going until the number is 0. For 

example, if the user provides the input 13, the output should be

1


1

1


Write a program that prints all powers of 2 from 20 up to 220.
Output Segment
1
2
4
8
16
:
:
65536
131072
262144
524288
1048576

Write a program with loops that compute the sum of all even digits of an input. (For 

example, if the input is 32677, the sum would be 2 + 6 = 8.)

Sample Run

Enter integer: 32677

Sum of all even digits = 8


Write a program with loops that compute the sum of all odd numbers between a and b 

(inclusive), where a and b are inputs.

Sample Run

Enter the lesser integer: 1

Enter the greater integer: 10

The sum of all odd numbers from 1 to 10 = 25


Write a program with loops that prints the square of each number from 20 up to 220.

Output Segment

Square of 20 = 400

Square of 21 = 441

Square of 22 = 484

Square of 23 = 529

Square of 24 = 576

:

:

Square of 220 = 48400


Write a program with loops that compute the sum of all squares between 1 and 100 

(inclusive).

Output

Sum of all squares from 1 to 100 (inclusive) = 338350


Write programs with loops that compute the sum of all even numbers between 2 and 100

(inclusive).

Output

Sum of all even numbers from 2 - 100 = 2550


LATEST TUTORIALS
APPROVED BY CLIENTS