Graderpractice for programmers

254275 OOP - Lab3 Extra Sec 3 Array and functions / Exception handling 2/2563

Awaiting submission
Level up Input the value no more than 5 integers separated by space and find the max value if input more than 5 print max input
Awaiting submission
I'm so glad you made time to see me How's life? Tell me, how's your family? I haven't seen them in a while You've been good, busier than ever We small talk, work and the weather Your guard is up and I know why Because the last time you saw me Is still burned in the back of your mind You gave me roses and I left them there to die Write a program that reads in a list of strings (one per line) and prints them out in reverse outloop with ***
Awaiting submission
Read in lines of input until "stop". Print out the number of characters in the words, not including "stop". Hint: you might want to use a do-while or while loop containing a nextLine to read input.
Awaiting submission
Input 1 string and output show duplicate characters with ,
Awaiting submission
Level up Heaven sent you to me I'm just hopin' I don't repeat history Boy, I'm tryna meet your mama on a Sunday Then make a lotta love on a Monday (ah-ah) Never need no (no), no one else, babe 'Cause I'll be Read in a list of strings and print out the one in the middle (or the two in the middle).
Awaiting submission
Write a program that reads in a list of integers and then prints out the numbers 1 to 30 NOT including the numbers from the input.
Awaiting submission
Check to see if a string has the same amount of 'C's and 'S's (uppercase only).. The string can contain any character.
Awaiting submission
Level up Given an array of integers, return an array where any odd numbers of the input array are changed to the nearest lower even number. where any even numbers of the input array are changed to the nearest highest odd number
Awaiting submission
You're observing a game of Pong. When the left player hits the ball, they announce "Ping". When the right player hits the ball, they announce Pong. After each point, the winning player serves.

If you hear “Ping, Pong, Pong, ...” then Pong won the 1st point and served again. Explanation: Ping served, Pong returned, Ping missed (no sound), Pong served again.

Write a program that reads an audio trace of a game -- each line contains either Ping or Pong.. At the end of the game, print the score.

use *** for out top

Awaiting submission
Level up Read in two integers that represent a vector (x, y) in a 2D space. Print out the quadrant number where the point is.

The 4 quadrants of a 2D space are:

Point P is in Quadrant II.

The input vector will always have exactly 1 quadrant. Ignore the case of points that are along the axis (e.g. 0,y and x,0 are not valid inputs).

Awaiting submission
Given an array of integers, return true if all integers in the array are equal.
Awaiting submission
Given an array of strings, return the first word that is longer than 6 letters. If no such word is found then print nothing.
Awaiting submission
Given an array of integers, return true if the sequence of numbers 1, 2, 3 appears anywhere in the array
Awaiting submission
Write a program that reads in a list of integers. Print out all the integers that are less than the last element of the list. Example, if the input is 3 8 5 7 then the last element is 7, so print out 3 5.
Awaiting submission
You got me some type of way (hmm) Ain't used to feelin' this way (mmm mmm) I do not know what to say (yeah, yeah) But I know I shouldn't think about it Took one fuckin' look at your face (hmm) Now I wanna know how you taste (mmm mmm) Usually don't give it away (yeah, yeah) But you know I'm out here thinkin' 'bout it Write a program input string and separated by , output Words in a sequence separated by, after the alphabetical order.
Awaiting submission
Level up Write a program that reads in many lines of text and counts the number of words and punctuation marks (including: ,.?!). The input ends with the line ***
Awaiting submission
A sequence of n numbers is called a jolly jumper when the absolute value of the difference between two adjacent numbers covers all possible values ​​from 1 to n-1, for example 1 4 2 3 is a jolly jumper because there is a difference between the pairs. Adjacent to 3 2 1, write a program to check if the sequence of numbers is a jolly jumper.

Require unlimited lines of information. Each line consists of an integer n followed by a sequence of n numbers that are integer separated by space.Check if it is a jolly jumper, if it is Jolly, but if not, the result is Not jolly.

Awaiting submission
Read in 3 positive integers. The first number is the size of the quadrant (grid). The second and third numbers are a point (x,y) in the quadrant. Print out the quadrant (a square of dots) where X marks the point.