Write a program that rolls a pair of dice until the sum of the number rolled is a specific number. we also want to know the number of times the dice are rolled to get the desired number. the smallest number or each die is 1 and the larges number is 6. so the smallest sum of the numbers rolled is 2 and the largest sum of the numbers rolled is 12. we use the random number generator, to randomly generate a number between 1 to 6.
A. Create a statement that randomly generates a number between 1 to 6 and stores that number into die1, which becomes the number rollled by die1
B. Similarly, create a statement that randomly generates a number between 1 to 6 and that number into die2, which becomes the number rolled by die2.
C. Next, determine whether sum contains the desired sum, then we roll the dice again.
D. Create a method named rolldice that takes as a parameter the desired sum of the numbers to be rolled and returns the number of times the dice are rolled to roll the desired sum.
Create three structures using linked list: Student, University & Branch.
Student structure contains Name, Roll No & Branch ID [in which the student studies], University structure contains University ID & University Name) &
Branch structure contains Branch ID & Branch Name
Implement the following function to :-