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

  The initial value of the radius of the circle is equal to one unit and each succeeding radius is one unit greater than the previous.  Draw the flowchart and write the pseudocode that would compute for the individual area of 20 circles starting with r = 2 and determine how many circles whose radius is  greater than 10. Print out each radius and the computed area of the circle and the total number of circle whose radius is greater than 10.


Create a program of water sort puzzle playing the game

Questions:


1.List down the different between IPv4 and IPv6 address?


2.Cite a situation in which you can apply the knowledge about IPv4 and IPv6 addressing.





Questions:


1.What is the importance of knowing the OSI layers?


2.Cite situation in which you can apply the knowledge of the different OSI layers.





Assume that you have a machine, as shown in section 3.2.2 of Block 3 having the microoperations given in Figure 10 on page 62 of Block 3. Consider that R1 and R2 both are 8-bit registers and contain 11110000 and 00110110 respectively. What will be the values of select inputs, carry-in input, and result of the operation (including carry out bit) if the following microoperations are performed? (For each micro-operation you may assume the initial value of R1

and R2 as given above)

(i) Decrement R1

(ii) Add R1 and R2 with carry

(iii)AND R1 and R2

(iv) Shift right R1


Consider that an instruction pipeline has only three stages namely instruction fetch and

decode (IFD), Operand Fetch (OF), and Instruction execute and store results (IES). Draw and

instruction pipeline diagram showing execution of 5 sequential instructions. What are the

problems of this instruction pipelining?


Write a program C that prompts the user to input: 4 quizzes, 4 laboratory exercises and 4 assignments in percentage for Class Participation. Class Participation=(avgQuiz+avgLab+avgAssignments)/3 *40%. The user will input the prelim exam. Percentage of PrelimExam=prelimexam*60%. The program should output the Prelim Grade: Prelim Grade = class participation + percentage of Prelim Exam. Put a remarks: if the grade is greater than or equal to 75 display PASSED, otherwise FAILED

SAMPLE RUN:

Class Participation

Quiz 1: 95

Quiz 2: 75

Quiz 3: 87

Quiz 4: 70

Average: 81.75

Lab. 1: 90

Lab. 2: 85

Lab. 3: 88

Lab 4: 80

Average: 85.75

Assignment 1: 80

Assignment 2: 75

Assignment 3: 86

Assignment 4: 95

Average: 84

Class Participation: 33.53

Prelim Exam: 89

%: 53.4

Prelim Grade: 86.93

Remarks: PASSED


Counting Num

by CodeChum Admin

To give you more of a challenge with a number's digits, let's try counting how many of a certain digit is present on a given number.


Let's start coding!


Instructions:

  1. Input two integer values. The first one shall accept any integer from 0-9 and the other one shall take a non-zero positive integer.
  2. Using a while loop, count how many of the first integer (0-9) is present in the digits of the second inputted integer and print the result (see sample input and output for example).
  3. Tip #1: You have to use your knowledge from the previous problems in looping through the digits of a number: % 10 to get the rightmost digit, while / 10 to remove the rightmost digit. Make sure to solve the previous problems first.

Input

A line containing two integers separated by a space.

2·124218

Output

A line containing an integer.

2





Survival of the Biggest

by CodeChum Admin

Looping a number and taking away each digit of it is so much fun, but I wanted to try out a much more complex task: getting the largest digit among them all.

Think you can handle the job?


Instructions:

  1. Input a non-zero positive integer.
  2. Using the same concept as the previous problem, figure out how to separate the digits of a number and determine which of the digits is the largest one, using a while. Afterwards, print the largest digit.
  3. Tip #1: Create another variable that will hold the largest digit. Initial its value to a negative integer, like -1, outside the loop.
  4. Tip #2: Everytime you get the rightmost digit, check if it is greater than the current largest digit. If it is, set it as the new largest digit.

Input

A line containing an integer.

214

Output

A line containing an integer.

4





Place Values

by CodeChum Admin

Manipulating values from a series of numbers is fun, but let's try exploring the use of loops a little more.


How about printing out each digit of a number starting from its rightmost digit, going to its leftmost digit?


Instructions:

  1. Input a non-zero positive integer.
  2. Using while loop, print out each digit of the inputted integer in separate lines, starting from its rightmost digit until the leftmost digit of the number.
  3. Tip #1: Use % 10 to get the rightmost digit. For example, if you do 412 % 10, then the result would be the rightmost digit, which is 2.
  4. Tip #2: On the other hand, use / 10 to remove the rightmost digit. For example, if you do 412 / 10, then the result would be 41.
  5. Tip #3: You'd have to repeat Tip #1 and Tip #2 inside the while() loop for this problem while the inputted integer is not yet 0.

Input

A line containing an integer.

214

Output

Multiple lines containing an integer.

4
1
2





LATEST TUTORIALS
APPROVED BY CLIENTS