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
Names of teams may contain spaces but will be less than 24 characters
100 >= N >= 0
Sample Input
6
CSK;RR;loss
RR;DD;draw
MI;KKR;win
KKR;RR;loss
CSK;DD;draw
MI;DD;draw
Sample Output
Team: RR, Matches Played: 3, Won: 2, Lost: 0, Draw: 1, Points: 7
Team: MI, Matches Played: 2, Won: 1, Lost: 0, Draw: 1, Points: 4
Team: DD, Matches Played: 3, Won: 0, Lost: 0, Draw: 3, Points: 3
Team: CSK, Matches Played: 2, Won: 0, Lost: 1, Draw: 1, Points: 1
Team: KKR, Matches Played: 2, Won: 0, Lost: 2, Draw: 0, Points: 0
Create a flowchart that will able to read the age of an individual and determine if it qualified to vote or not. The qualifying age to vote is 18 and above. If the age is 18 below, display "too young!". Note that there is no such age as 0 or negative however display "Invalid age" if age is above 100 display "Out of range".
Draw a flowchart that will display "IT'S COLD!" if the temperature is less that 20, "IT'S HOT!" if the temperature is greater than 30, "COOL!" otherwise.
Investigatory project on School fee management system.
With synopsis and images.
Make a program that will accept an integer and loop from 1 to that integer. Then, print all numbers from that range that are greater than 3.
We've already tried comparing 3 numbers to see the largest among all, so let's try a more complicated mission where we locate where among the 5-digit integer is the largest one. There are only 4 possible cases for this mission:
if the largest digit is the first digit, print "Leftmost"
if the largest digit is the third digit, print "Middle"
if the largest digit is the last digit, print "Rightmost"
if none of the above is correct, print "Unknown"
Now, show me how far you've understood your lessons!
7. Negative Decimal Tally by CodeChum Admin
We've been giving positive numbers too much attention lately, it's time to let negative numbers take the spotlight this time!
Instructions:
Input four float numbers; they could be positive or negative.
Only add all inputted negative numbers, and print its sum, up to 2 decimal place.
Hint: The previous/latest topic is about if-else-elseif statements, but do we need one here?
Instructions
Input four decimal numbers, they could be positive or negative.
Add all the negative numbers, and print the sum, up to 2 decimal places.
Input
A line containing four decimals/floats separated by a space.
-30.22·10.5·-2.2·-1.8
Output
A line containing a negative decimal/floats with two decimal places.
-34.22
End to End
by CodeChum Admin
Don't you find it amazing to discover words and sentences that have the same first and last letter? We just don't usually notice them, so we can try it out by coding out this problem instead! Print out "Yes" if the first and last characters of the given string are the same, and "No" otherwise. It doesn't matter if they're in lowercase or uppercase, as long as it's the same letter, it fits the description.
So, what are you waiting for? Code now!
Input
A line containing a string.
Pop·it·up
Output
A line containing a string.
Yes
Draw a flowchart that determines if the employee has to be paid of overtime pay (OT). They will be paid an OT if they exceed 40 hours work in a week, regular pay (RP) if less than or equal to 40 hours only. Display "OT Pay" or " RP Pay", based on the entered number of hours a week.
Which are the best logical steps to code an isSublist(..). method that receives a linked list as parameter called plist and determine if all the elements are present in the calling list straight after each other. Ex.
[1,2,3,4,5,6] [2,3,4] true [2,4,5] false.