Select all the the devices that can be used by the Arduino as inputs
Temperature sensor
Motors
Pressure Sensor
Pressure Sensor
Motors
What is the maximum DC Current per I/O Pin of the Adruino Uno?
What will the value of the result variable be after the code segment below has been run.
int number1 = 93;
int answer = 128;
if( number1 > 49 )
{
answer -= number1 ;
}
else
{
answer += number1 ;
}
What will the value of the solution variable be after the code segment below has been run?
bool solution ;
int number2 = 10, number7 = 25, number9 = 16;
solution = number2 >= number7 && number2 > number9 ;
What will the value of the result variable be after the code segment below has been run.
int number2 = 39;
int result = 33;
if( number2 <= 83 )
{
result *= number2 ;
}
Write a C++ program to perform 128-bit encryption and decryption using XOR operation.
Your program must ask for 128-bit key and plain text then perform encryption and decryption.
The information about colours is to be stored in bits of a variable called colour. The bit
number 0 to 7, each represent 8 colours of a rainbow, i.e. bit 1 represents Blue, 2 represents Green,
and so on (see table below). Write a C++ program that asks the user to enter a number and based on
this number, an eight lined rainbow (of asterisks *) is to be displayed, such that, if the bit is ON,
respective colour is displayed otherwise black line is drawn (not visible).
In a Military database system, IDs of the army personnel are stored in a 32-bit value
which is coded as follows:
a. 7-bits Belt number
b. 10-bits Batch number
c. 5-bits Log number
d. 10-bits Unit number
Your Task is to write a C++ Program which inputs a four-byte integer ID, and a string Name of the
army man. Your Program will separate the Belt number, Batch number, Log number and Unit
number and prints the information in the following manner.
Enter Name of Army Man Khan
Enter ID of Army Man: 858993459
Belt number of Khan is : 51
Batch number of Khan is: 614
Log number of Khan is: 25
Unit number of Khan is: 204
take a scenario where we need to design a function that is supposed to process a vector with 10,000,000 elements.
Question #261249
Using the node from task 2, implement a class called DLL with following functionalities
1. insert a node at first ,
2. overload to Insert a node at last
3. overload to Insert at specified position of double linked list. E.g if the position number is 6, it is inserted between node at position 5 and 7. If position number is greater than the size of list.
1. eliminate duplicates from doubly linked list
2. delete a node from first,
3. overload to delete a node from last
4. overload to delete at specified position of double linked list. E.g if the position number is 6, it is deleted from between node at position 5 and 7. If position number is greater than the size of list, it is prompted that the position number does not exist and therefore is being deleted from the end.
5. Make a sub menu to Merge 2 doubly list. Let there be 2 lists L1, L2
a. Press 1 to append L1 to L2.
b. Press 2 to append L2 to L1.
c. Press 3 to merge L1 and L2 in sorted order.