Write a c++ program to request the student registration number, the student name, the course and the age, and display them all to the user
Write a c++ program to accept a two numbers from the user multiply the two numbers and display the results to the user
Write a program in C++ to print a number entered by the user
Explain the working of the following code perform rough work .
myList *head,*cur,*previous=NULL;
for(int i=0;i<4;i++)
head=new myList;
head->data=0;
head->next=previous;
for(cur=previous;cur!=NULL;cur=cur->next)
head->data+=1+2*cur->data;
previous=head;
while(previous!=NULL)
cout<<previous->data<<endl;
cur=previous;
previous=previous->next;
delete cur;
Write a function in C++ to insert a circular Queue containing
Players information (represented with the help of array of structure PLAYER).
Consider following definition of Node
struct PLAYER
{
int PID;
char Pname[20];
NODE* Next;
};
3. A method to calculate overtime pay. This method should be called from calculatePay if and when
required.
public static double calculateOverTimePay(int OverTimeHours, double
basePay)
4. A method to display information
public static void displayInfo(String empName, int workingHours, double
totalPay)