vendredi 25 septembre 2020

can anyone please help me [closed]

  1. Take two user inputs: lower limit and upper limit. Populate a 2-dimensional array with random numbers within the range given by the user. Call a function that calculates the average value each of the rows.
  2. Write a function that takes a string as a parameter, changes all the letters to uppercase letters and returns the updated string.
  3. Write a function that takes a string as a parameter and check the string is a palindrome or not palindrome. Then returns the result to the main function.
  4. Take a sentence as user input and call a function that prints it in backward order. Sample Input Sample Output Enter a sentence: DHAKA IS THE CAPITAL OF BANGLADESH Backward sentence: BANGLADESH OF CAPITAL THE IS DHAKA Enter a sentence: my name is nirob Backward sentence: nirob is name my 9.sWrite a function that takes a student ID as a string parameter, the checks if the ID is valid or not. If the ID is valid then find which semester and year, he/she got admitted in University and their unique ID. Sample Input Sample Input Student ID: 1821675 The ID is valid Year: 2018 Semester: Spring Unique ID: 1675 Student ID: 1701500 The ID is NOT valid
  5. Write a function that checks if a number is prime or not. If the number is prime the function returns true, otherwise false. Also try functions for checking perfect numbers and palindromes.

Aucun commentaire:

Enregistrer un commentaire