Create a structure student with roll,name,10th marks, +2marks and graduation marks,and find the total marks of each of the above courses individually by using function overloading.
1.Roll a dice 100 times and store the results in an array.
2.Roll a dice 100 times again and store the results in a different array.
3. The sums of the faces in each time are stored in another array.
4. Show the frequencies of the sum array on the screen.
IPL Match Details
Write a program that reads all the match outcomes and summarizes the information of all the matches.
Points are given to the teams based on the outcome of the match.
A win earns a team 3 points. A draw earns 1. A loss earns 0.
The following information is expected:
MP: Matches Played
W: Matches Won
D: Matches Drawn (Tied)
L: Matches Lost
P: Points
The team information should be displayed in descending order of points.Input
The first line contains a single integer N, denoting the total no. of matches played.
The following N lines contain outcomes of N matches.
Each of those lines has information on the teams (T1, T2) which played and the outcome (O) in format T1;T2;O.
The outcome (O) is one of 'win', 'loss', 'draw' and refers to the first team listed.
See Sample Input/Output for better understanding.
The team name may contain spaces.Output
\Add two polynomials
Given two polynomials A and B, write a program that adds the given two polynomials A and B.Input
The first line contains a single integer M.
Next M lines contain two integers Pi, Ci separated with space, where Pi denotes power and Ci denotes co-efficient of Pi for polynomial A.
After that next line contains a single integer N.
Next N lines contain two integers Pj, Cj separated with space, where Pj denotes power and Cj denotes co-efficient of Pj for polynomial B.Output
Print the addition of polynomials A and B.
The format for printing polynomials is: Cix^Pi + Ci-1x^Pi-1 + .... + C1x + C0, where Pi's are powers in decreasing order, Ci is co-efficient and C0 is constant, there will be space before and after the plus or minus sign.
If co-efficient is zero then don't print the term.
If the term with highest degree is negative, the term should be represented as -Cix^Pi.
For the term where power is 1 represent it as C1x instead of C1x^1.
.
Rearrange Numbers in String
Given a string, write a program to re-arrange all the numbers appearing in the string in decreasing order. Note: There will not be any negative numbers or numbers with decimal part.
Input
The input will be a single line containing a string.
Output
The output should be a single line containing the modified string with all the numbers in string re-ordered in decreasing order.
Explanation
For example, if the given string is "I am 5 years and 11 months old", the numbers are 5, 11. Your code should print the sentence after re-ordering the numbers as "I am 11 years and 5 months old".
Sample Input 1
I am 5 years and 11 months old
Sample Output 1
I am 11 years and 5 months old
Sample Input 1
Exam2 will be held on 1st week of august20
Sample Output 1
Exam20 will be held on 2st week of august1
Write a C++ Program to Multiply Two Matrix Using Multi-dimensional Arrays. You can use int or double
2D array and takes it input from user. This program takes two matrices of order r1*c1 and r2*c2
respectively. Then, the program multiplies these two matrices (if possible) and displays it on the screen,
please take input from user.
The organisation you work for has asked you to create an interactive application that will assist with the allocation of employees to a cell phone network provider and phone number generation. You are required to prompt a user for three employee names which will randomly assign the employee to either the Vodacom, MTN or Cell C network. The employees also require a randomly generated phone number. The start of each phone number will begin with the following, depending on the network provider: NETWORK PROVIDER START Vodacom 072 MTN 083 Cell C 084 The remaining numbers of the phone number must be randomly generated
Program 2 – Seasons in the sun Create a Java application which will prompt the user to type in any month number (1-12). Implement a switch statement that will display the season. The seasons according to the months are: 1. Summer: November, December, January and February 2. Autumn: March, April and May. 3. Winter: June, July, August. 4. Spring: September and October
Developed as a console application without GUI, this student database system project
uses file to store the students’ information mentioned in the features below
Add Records
Search Records
Modify Records
Delete Records
1. What is a Client-Server Architecture? Explain with a diagram.
2. What is HTML (HyperText Markup language)? What are the two (02) major parts of an HTML program?
3. Write down file extensions of an HTML program.
4. How Do Websites Work?