Write a java program to Calculate Grades. A School wants to give assign grades to its students based on their marks. You have been assigned as the programmer to automate this process. You would like to showcase your skills by creating a quick prototype. The prototype consists of the following steps: Read student details from
Write a program to validate the Date of Birth given as input in String format (MM/dd/yyyy) as per the validation rules given below. Return true for valid dates else return false. 1. Value should not be null 2. month should be between 1-12, date should be between 1-31 and year should be a four digit
Write a java program to convert ArrayList to String Array. how to convert ArrayList into the string array in java Write a program that performs the following actions: Read n strings as input. Create an arraylist to store the above n strings in this arraylist. Write a function convertToStringArray which accepts the arraylist as input.
Write a program to generate the state ID. 1)Read n Strings as input(as State Name). 2)Create a String Array to Store the above Input. 3)Write a function getStateId which accepts String Array as input. 4)Create a HashMap<String,String> which stores state name as key and state Id as Value. 5)The function getStateId returns the HashMap to the Main
Write a program that takes two ArrayLists as input and finds out all elements present either in A or B, but not in both. Input and Output Format: Input consists of an integer (m) denoting the size of the first ArrayList. The next m elements would be the values of the first array list. The next
Write a small price calculator application with the below-mentioned flow: Read a value n indicating the total count of devices. This would be followed by the name and price of the device. The datatype for a name would be String and price would be the float. Build a hashmap containing the peripheral devices with the
Write a java program to read a string containing the date in DD-MM-YYYY format. find the number of days in the given month. Note – In leap year February has got 29 days. The return type is the integer having a number of days. Input and Output Format: Input consists of a string. The output
Write a program to read an array, eliminate duplicate elements and calculate the sum of even numbers (values) present in the array. Input and Output Format: Input consists of n+1 integers. The first integer corresponds to n, the number of elements in the array. The next ‘n’ integers correspond to the elements in the array.
Write a program to read a string containing the date in DD/MM/YYYY format and check if its a leap year. If so, return true else return false. The return type is the boolean indicating TRUE / FALSE. Input and Output Format: Input consists of a string. The output consists of TRUE / FALSE. Refer sample
Write a java program to find the length of the largest chunk in the string. Read a string and return the length of the largest “chunk” in the string. A chunk is a repetition of the same character 2 or more number of times. If the given string does not contain any repeated chunk of