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
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:
Input
A line containing two integers separated by a space.
2·124218Output
A line containing an integer.
2by 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:
Input
A line containing an integer.
214Output
A line containing an integer.
4by 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:
Input
A line containing an integer.
214Output
Multiple lines containing an integer.
4
1
2