Two players are each given a set of 3 dice. The first player throws the 3 dice and the
numbers on the top face of each die is recorded. Then the second player similarly
throws his 3 dice and the numbers on the top face of each die is also recorded. The
two sets of readings are compared and a player is deemed to have won that round if
any of the following occurs: -
(a) A set of all same numbers are obtained e.g. all 1s, or all 2s, or any other number
therein. If both players fall into this scenario during that round, then it is a draw
for that round. If only one player throws all the same numbers, then he wins
that round.
(b) Both players throw their dice and obtained three different numbers. All three
numbers are totalled up and whoever has the larger total, wins that round.
However, if the total of both players are the same then it is a draw.
After N rounds, the first player to reach a total accumulated round wins of 10 is declared
the overall winner.
An organization is granted a block of addresses with the beginning address
150.25.0.0/24. The organization needs to have 3 subblocks of addresses to use in its three
subnets: one subblock of 11 addresses, one subblock of 40 addresses, and one subblock of
125 addresses. Design the network and plot it completely with respective subnets, IP range,
Network IDs
Create a program using C# that implements the stream ciphers Cryptographic method . A stream cipher method inputs digits, bits, or characters and encrypts the stream of data. The onetime pad is an example of a stream cipher.
In this formative you have been requested to create an application that will work as the One-time pad (OTP), also called Vernam-cipher or the perfect cipher. This is a crypto algorithm where plaintext is combined with a random key and generate a ciphertext
IP Address Correction Find the firstaddress, last address and the number ofaddresses of a network whose one of the IPaddresses is 72.250.220.112/27. kindly use thisIP in your assignment`
write a c++ program to demonstrate hierachical inheritance to get square and cube of a number. Base class must calculate square of a number whilst Base class2 caculates cube of a numberr
Create a program that will allow user to enter an integer number and display its square root and absolute value
create a program that will display the square root and absolute value of each number that tanges 1-100
Please do this programming activity using the selection statement.
Write a Java program that calculates the total amount due of a student depending on the plan selected and total number of units. To calculate the tuition fee, the cost per unit is 500 pesos. The total miscellaneous fee of all students is 2,000 pesos and other fees costs 378.50 pesos. The following are the types of payment: (a) For cash payment, the total amount due includes the tuition fees, miscellaneous and other fees; (b) Plan A, the total amount due includes he tuition fees, miscellaneous fee, other fees, and additional installment fee of 1,500 pesos; (c)Plan B, the total amount due includes he tuition fees, miscellaneous fee, other fees, and additional installment fee of 2,000 pesos. The program accepts the total units and payment type. The program should print the total tuition fees, miscellaneous fees, other fees, installment fee (if applicable), and total amount due.
Differentiate among flow control mechanisms by taking suitable examples
Beyond 300 units Rs.5.00 per unit
An electricity board charges the following rates to domestic users to discourage large consumption
of energy.
For the first 100 units Rs 1.50 per unit
For the next 200 untis Rs 3.00 per unit
All users are charged a minimum of Rs. 100. If the total cost exceeds Rs.250, then an additional
surcharge of 15% is added. Write a program to read the name of user and number of units consumed
and print out the charges with name.