Write a program using one-dimensional array that accep t fiveinput values from the keyboard. Then it should also accept a number to search. This number is to be searched if it is among the five input values. If it is found, display the message “Searched number is found!”, otherwise display “Search number is lost!”
5 types of time complexity
Write an algorithm using pseudocode to verify that a password's length exceeds 8 characters, but is shorter than 12 characters. (INCLUSIVE 8-12)
Write an algorithm using pseudocode to check the age and height of a child who wants to go on a fairground ride. The child's age must exceed 7, but below 12, their height must exceed 110 cm, but below 150 cm.
Design and implement a program that computes final averages for a set of grades. The program reads the grades from a user. (10) The format of a grade line is: N grades1, grades2, …………., grades5 Where N is total number of students and grades is the ith score. All scores must be between 0 and 100. The program reads the grades from the user, calculate and display the average
The weighted average is computed as:
NB: Your program should validate its input. That is, it should make sure each score is between 0 and 100 and that each student has n scores/ grades. If a student’s grades are invalid, the program should display an error message. The program should contain modules / functions that handles validating the input
1) Identify the validation checks that you could use for the following inputs and justify your choice:
If more than a single validation check would be required from your perspective, please indicate which ones and why.
1a) Entering a telephone number.
1b) Entering a student's name.
1c) Entering a part number in this format: XXX999, where X must be any letter from the standard western alphabet (A-Z), and 9 must be replaced with a single digit between 0 and 9.
2) Write an algorithm using pseudocode to check the age and height of a child who wants to go on a fairground ride. The child's age must exceed 7, but below 12, their height must exceed 110 cm, but below 150 cm.
3) Write an algorithm using pseudocode to verify that a password's length exceeds 8 characters, but is shorter than 12 characters. (INCLUSIVE 8-12)
COMPUTE GRADE PROGRAM
Create a function named StudeInfo that will accept the following values from the user:
StudentID, StudentName, Course, Age, PrelimGrade, MidtermGrade, FinalTermGrade.
Create a function named ComputeGrade that will compute Final Average which is computed as the sum of PrelimGrade, MidtermGrade and FinalTermGrade divided by 3.
Display the output with the following format: (sample output)
*************************************************************************************
Student ID : 00-00-01
Student Name : FERNAN W. AMMAQUI
COMPUTE GRADE PROGRAM
Create a function named StudeInfo that will accept the following values from the user:
StudentID, StudentName, Course, Age, PrelimGrade, MidtermGrade, FinalTermGrade.
Create a function named ComputeGrade that will compute Final Average which is computed as the sum of PrelimGrade, MidtermGrade and FinalTermGrade divided by 3.
Display the output with the following format: (sample output)
*************************************************************************************
Student ID : 00-00-01
Student Name : FERNAN W. AMMAQUI
____________________________________________________________________________________
PRELIM GRADE : 90.0
MIDTERM GRADE : 90.0
FINAL GRADE : 90.0
AVERAGE : 90.0
*************************************************************************************
Color the Student ID and Name values with green. Failing average will be colored with red. Otherwise, color it with blue.
COMPUTE GRADE PROGRAM
Create a function named StudeInfo that will accept the following values from the user:
StudentID, StudentName, Course, Age, PrelimGrade, MidtermGrade, FinalTermGrade.
Create a function named ComputeGrade that will compute Final Average which is computed as the sum of PrelimGrade, MidtermGrade and FinalTermGrade divided by 3.
Display the output with the following format: (sample output)
*************************************************************************************
Student ID : 00-00-01
Student Name : FERNAN W. AMMAQUI
____________________________________________________________________________________
PRELIM GRADE : 90.0
MIDTERM GRADE : 90.0
FINAL GRADE : 90.0
AVERAGE : 90.0
*************************************************************************************
Color the Student ID and Name values with green. Failing average will be colored with red. Otherwise, color it with blue.
COMPUTE GRADE PROGRAM
Create a function named StudeInfo that will accept the following values from the user:
StudentID, StudentName, Course, Age, PrelimGrade, MidtermGrade, FinalTermGrade.
Create a function named ComputeGrade that will compute Final Average which is computed as the sum of PrelimGrade, MidtermGrade and FinalTermGrade divided by 3.
Display the output with the following format: (sample output)
*************************************************************************************
Student ID : 00-00-01
Student Name : FERNAN W. AMMAQUI
____________________________________________________________________________________
PRELIM GRADE : 90.0
MIDTERM GRADE : 90.0
FINAL GRADE : 90.0
AVERAGE : 90.0
*************************************************************************************
Color the Student ID and Name values with green. Failing average will be colored with red. Otherwise, color it with blue.