1. Batsman with best strikerate and average in different total runs range a. 1-1000, 1000-2000, 2000-3000 and so on up to maximum runs.
2. Find Best bowler and best batsman.
3. Maximum catches, maximum extra runs, etc.
4. Any other question of your choice.
Write a program that will ask a user for how many numbers they would like to check. Then, using a for loop, prompt the user for a number, and output if that number is even or odd. Continue doing this as many times as the user indicated. Once the loop ends, output how many even numbers were entered and how many odd numbers were entered.
How many numbers do you need to check? 5
Enter number: 20
20 is an even number.
Enter number: 33
33 is an odd number.
Enter number: 4
4 is an even number.
Enter number: 77
77 is an odd number.
Enter number: 8
8 is an even number.
You entered 3 even number(s).
You entered 2 odd number(s).How many numbers do you need to check? 3
Enter number: 10
10 is an even number.
Enter number: 3
3 is an odd number.
Enter number: 400
400 is an even number.
You entered 2 even number(s).
You entered 1 odd number(s).
Using do while loop, write a C++ program that will compute and display the square roots of the 30 even positive integers starting from 100.
Output:
Square Root of 100: 10
Square Root of 102: 10.0995
Square Root of 104: 10.198
Square Root of 106: 10.2956
Square Root of 108: 10.3923
Square Root of 110: 10.4881
:
:
write program to ask user to enter 4 numbers and the output the main of thes mumbers,this program should only use 2 varible
Identify the user and system requirements to design a database for the above scenario and design a relational database system using conceptual design (ER Model) by including identifiers (primary Key) of entities and cardinalities, participations of relationships. Convert the ER Model into logical database design using relational database model including primary keys foreign keys and referential Integrities. It should contain at least five interrelated tables.
Area of Largest Rectangle in Histogram:
Given a list of integer heights representing the histograms bar height where the width of each bar is 1, return the area of largest rectangle in the histogram.
Input: The input will be a single line containing space-separated integers, denoting the heights of the bars.
Output: The output should be a single line containing the area of the largest rectangle in the rectangle.
Sample Input 1:
2 1 5 6 2 3
Sample Output 1:
10
Sample Input 2:
65 87 96 31 32 86 57 69 20 42
Sample Output 2:
248
Write a program that shows a traffic light simulation along with road path in c++
3. Negative Allergy
by CodeChum Admin
Whole numbers are great, but I think we should also pay attention to decimal numbers, too.
So, how about we make a program that involves a lot of decimals?
Instructions:
Continuously ask for floating point values (decimal numbers) using the do…while() loop, sum them all up, and store the total into one variable.
The loop shall only terminate for the following reasons:
A negative decimal number is inputted (but still included in the total sum)
The total sum reaches 100.0 or more
Input
Multiple lines containing float number on each.
1.1
1.2
1.3
1.4
-1.0
Output
A line containing a float number with two decimal places.
4.00
Palindrome Pairs:
Given a list of unique words, write a program to print all the pairs of the distinct indices (i,j) in the given list, so that the concatenation of two words at the indices i and j is a palindrome.
Input: Input will be a single line containing a sentence.
Output: The output should be printing each distinct pair of indices (i,j) each in a line in ascending order. If there are no distinct pairs found, print "-1"
Note: Consider (i,j) and (j,i) as two different pairs.
Closest palindrome Number:
Given a string N, representing an integer, return the closest integer(not including itself), which is palindrome. If there is a tie, return the smaller one. The closest is defined as the absolute difference minimized between two integers.
Input:
The input will be a single line containing an integer.
Output:
The output should be a single line containing a closest palindrome number to the given integer.
Explanation:
For example, if the given integer is 19, the palindrome number greater than 19 is 22 and the palindrome number less than 19 is 11. As 22 is closest to the number 19. So the output should be 22.