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

Configure and Document the configuration steps taking screenshot of any Unified Threat Management. 


https://www98.zippyshare.com/v/dyPJAeHF/file.html

https://www98.zippyshare.com/v/mG8vx3EN/file.html


3. Using the online compiler:-

• Enter the code from the file bitwise_demo.c

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
	
	byte_t result;	
	byte_t second_byte;
	byte_t first_byte;

	int    shift;
	
	// Reading the first byte. Integer is entered then cast to byte_t.
	printf("Enter the value of the first_byte (0-255): ");
	scanf("%d", &i);
	first_byte = (byte_t)i;
	
	// Reading the second byte. Integer is entered then cast to byte_t.
	printf("Enter the value of the second_byte (0-255): ");
	scanf("%d", &i);
	second_byte = (byte_t)i;
	printf("\n\n");
	
	// The results will be printed out in hexadecimal.
	// The %X placeholder is for hexadecimal output.
	// This can be extended to %02X, i.e. a hexadecimal
	// character, 2 characters wide, with leading blanks
	// filled-in as zeros.
	
	// Bitwise inversion
	result = ~first_byte;
	printf("The value of ~(%02X) is %02X\n", first_byte, result);
	result = ~second_byte;
	printf("The value of ~(%02X) is %02X\n\n\n", second_byte, result);
	
	// Bitwise AND, OR, XOR
	result = first_byte & second_byte;
	printf("The value of (%02X) & (%02X) is %02X\n", 
		first_byte, second_byte, result);
	result = first_byte | second_byte;
	printf("The value of (%02X) | (%02X) is %02X\n", 
		first_byte, second_byte, result);
	result = first_byte ^ second_byte;
	printf("The value of (%02X) ^ (%02X) is %02X\n", 
		first_byte, second_byte, result);
		
	system("pause");
	return 0;
}



• Add this source code to your logbook.

• Run the program. You will be prompted to enter two values between 0 and 255. Initially enter 234 and 37.

• Add the output of this program to your logbook.

• Repeat this with other values of your choice.

• Write a short reflective account of the code concentrating on its functionality and comparing the outputs against the source code.


How to concatenate float and string

2. Using the online compiler

• Enter the code from the file bit_shift_demo.c

/* run this program using the console pauser or add your own getch, system("pause") or input loop */

int main(int argc, char *argv[]) {
	
	byte_t first_byte = 128;
	byte_t second_byte = 1;
	int    shift;
	
	printf("Enter the number of left/right shifts: ");
	scanf("%d", &shift);
	printf("\n\n");
	
	// Right-shift first_byte
	first_byte = first_byte >> shift;
	
	// Left-shift second byte
	// This is the equivalent of second_byte = second_byte << shift; 
	second_byte <<= shift;		
	
	// Display the results
	printf("128 >> %d = %d\n", shift, first_byte);
	printf("1 << %d = %d\n", shift, second_byte);
	
	system("pause");
	return 0;
}



 Run the program. You will be prompted to enter a value for the number of shifts. Initially enter the value of zero

• Add the output of this program to your logbook.

• Repeat the previous two steps with values of 1, 2, 3, 4, 5, 6, 7, and 8.

• Write a short reflective account of the code concentrating on its functionality and comparing the outputs against the source code.




1. Using the online compiler (or Dev C++):-

• Enter the code from the file operators.c https://vle.dmu.ac.uk/bbcswebdav/pid-5463722-dt-content-rid-10886002_1/courses/ENGD1025_2122_520/operators%281%29.c

• Add this source code to your logbook.

• Run the program. You will be prompted to enter integer values for a and b. Enter 4 for a, and 5 for b.

• Add the output of this program to your logbook

• Write a short reflective account of the code concentrating on its functionality and comparing the outputs against the source code.


Create a class named Employee which will have several derived one which are



IT Executive, HR Manager, Market Analyst and Part Timer. All the employess



must have name, id (format of id E-0001,E-0002 etc.), name, date of birth,



joining date[all the dates need to be of custom type], blood group, address



(thana, home district, phone no) and monthly salary.IT Executive has project



bonus, HR Manager has KPI and Market Analyst has Commission as extra income



per month; Part timer doesn't have anyting extra.




Create at least one object for each and individual type of empolyee and show



all of their information including total income for everyone from a single



method. For initializing the object use parameterized constructor.Create



necessary methods, properties, constructors also use proper object oriented



approach, you know only getting output is not our target. To calculate the



total income you can create a separate method.

You are required to implement a simple equation stored in a binary tree.




Each operand or operator should be stored as a tuple of the form (TYPE, VALUE).



Your task is to complete the body of the functions, insert and evaluate.



The parameter data will be used to store the tuple (e.g. (OPERAND,34)



bracketed in the insert function is used to denote whether an operator is



The evaluate function should be able to process the expression stored in the binary tree and compute the final result.To do that,the function should be able to traverse the binary tree. Observe how the evaluate function is used inside the get ouput.



the expression stored in the binary tree is“1+(2*3)+3^ 2"



the evaluate function should return 100.



The get_output function returns the final result




function) if it is in the range [0, 999]. If the final result is less than 0, it returns




UNDERFLOW and if the final result is greater than 999, it returns OVERFLOW.

3. Write a C program using an online C compiler that implements the following:-

• Declare a string; upon initialization populate the string with a phrase of your choice.

• Declare a second-string; upon initialization populate that string with a different phrase of your choice.

• Display both strings using a single printf() function call.


2. Write a C program using an online C compiler (or Dev C++) that implements the following:-

• Declare a 10-element floating-point array; give the array a suitable name.

• Declare an integer variable (of type int); call it i

• Upon declaration, populate the array with 10 floating-point numbers of your choice.

• Prompt the user to enter a value between 0 and 9

• Read a number from the keyboard into i

• Display the ith element of the array


LATEST TUTORIALS
APPROVED BY CLIENTS