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

//what is the error in this program??
#include <iostream>
#define size 5 
using namespace std;  
int main () { 
int numbers=(5,10,15,20,25,30,35,40};            double total, average;
for (int i;i <size;i++) 
   total+= numbers; 
average = total/size; 
cout << "Average" << average << endl; 
return 0; 
}

Write an algorithm for the network administrator to help him find number of data characters that do not change position even after the data stream is reversed


Mr. Seth is a Goldsmith. He wants to know the amount of money earned from the sale.

On a Normal day, i.e., Weekday there is a sale of Rs. 10000/- which is fixed. On a weekend, there is an additional sale of Rs. 5000/- , and on a festival day (be it either week day or week end), there is an additional sale of Rs. 20000/-.

Following are requirements to solve the problem

a. The type of day i.e., weekend or festival day has to be captured.

b. Check for the type of day and compute the total amount of sale

c. Display the amount of sale in Rupees.



Prefix Suffix

Write a program to check the overlapping of one string's suffix with the prefix of another string.

Input

The first line of the input will contain a string A.

The second line of the input will contain a string B.

Output

The output should contain overlapping word if present else print "No overlapping".

Explanation

For example, if the given two strings, A and B, are "ramisgood" "goodforall"

The output should be "good" as good overlaps as a suffix of the first string and prefix of next.


Sample Input 1

ramisgood

goodforall


Sample Output 1

good


Sample Input 2

finally

restforall


Sample Output 2

No overlapping




Given the weekday of the first day of the month, determine the day of the week of the given date in that month.

Input

The first line is a string D.

The second line is an integer N.

Output

The output should be a string.

Explanation

In the given example,

D = Monday. As the 1st of the day of the month is a Monday, it means the 7th and 14th of the month will also be Mondays (A week has 7 days). So the 16th day (N = 16) of the month will be a Tuesday. So, the output should be

Tuesday.


Sample Input 1

Monday

16


Sample Output 1

Tuesday


Sample Input 2

Tuesday

17


Sample Output 2

Thursday








1. For each IPv4 network prefix given (with length), identify which of the subsequent IPv4 addresses are part of the same subnet.

(a). 10.0.130.0/23: 10.0.130.23, 10.0.129.1, 10.0.131.12, 10.0.132.7

(b). 10.0.132.0/22: 10.0.130.23, 10.0.135.1, 10.0.134.12, 10.0.136.7

(c). 10.0.64.0/18: 10.0.65.13, 10.0.32.4, 10.0.127.3, 10.0.128.4

(d). 10.0.168.0/21: 10.0.166.1, 10.0.170.3, 10.0.174.5, 10.0.177.7

(e). 10.0.0.64/26: 10.0.0.125, 10.0.0.66, 10.0.0.130, 10.0.0.62

 

2. Convert the following subnet masks to /k notation, and vice-versa:

(a). 255.255.240.0

(b). 255.255.248.0

(c). 255.255.255.192

(d). /20

(e). /22

(f). /27

 

3. Suppose an Ethernet packet represents a TCP acknowledgment; that is, the packet contains an IPv4 header with no options and a 20-byte TCP header but nothing else. Is the IPv4 packet here smaller than the Ethernet minimum packet size, and, if so, by how much? What if the packet is IPv6 with no extension headers?



Create a class called InputData. It has two private data members data_a (int) and data_b (int). Write a function input() to get input for the attributes from the user and a function display() to display the values of the attributes. The values of these two data members can be returned by using two public functions get_a() and get_b().



*Derive a class called Arith_Unit from InputData. It contains the functions add(), sub(),mul(), div() to perform arithmetic operations on data_a and data_b.



*Derive a class Logic_Unit from InputData. It contains the functions and(), or() and xor() to perform bitwise operations on data_a and data_b.

Write a main() to test functionalities of the Arith_unit and Logic_unit classes.
  1. Explain cache coherency. 
  2. What is the benefit of using sparse addresses in virtual memory?
  3. Name and describe the different states that a process can exist in at any given time.
  4. Describe two general approaches to load balancing.
  5. Describe the differences between physical, virtual, and logical memory.

 Your response must be a complete APA lab report (title page, conclusion and references page) and your own work. The conclusion should be your thoughts. 


Using one of the referenced website articles discuss single-queue versus multi-queue scheduling

You must post your initial response (with references) before being able to review other student’s responses.  


For the given IP address, identify the following:

a)        Number of subnet and the each subnet address,

b)        Valid hosts address range

c)        Broadcast address.

 

            i.               200.25.11.35/26

          ii.               192.168.20.67/27

        iii.               205.176.70.113/28

        iv.               192.168.43.213/25


LATEST TUTORIALS
APPROVED BY CLIENTS