Questions: 1 835

Answers by our Experts: 1 539

Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

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.


WRAV101: Practical 4

Submit in Moodle before Tuesday 22 March, 14:00

Objectives

 Using loops

 Using decision statements

 Using build-in methods

NB: Check out the steps below regarding getting started, saving the program (after


Task 3

Write a program to display the squares of all the numbers 1 to 100 in a

table format similar to the output displayed.

You have to make use of a loop.


create a program, name it PRGYOURNAMEFA1, that implements a search and replace function recursively. Your program should allow a user to enter a string , a substring to be replaced in the entered string and a character/s to replace the found substring 

Program Structure

1. A main class that implements the logic of the program – name this class TestSearchReplace

2. Add a class named SearchReplace to the main class with two methods, including:

a. SearchSubstring()- return method

b. ReplaceSubString() - void method

The two method should be called using an object in the main class. DONT CREATE THE TWO METHODS IN THE MAIN CLASS

Sample Output:

1 Please enter a string: Hello world

2 Please enter the substring you wish to find: llo

3 Please enter a string to replace the given substring:@@

4 Your new string is: h@@ world

Write a program that requests the user for 20 numbers and calculates the average of the numbers which are smaller than 10. You have to make use of a loop.


Write a program to display the squares of all the numbers 1 to 100 in a table format similar to the output displayed. You have to make use of a loop. (Note: the output shown here is only an extract of the output your program should give)


Write a program to display the numbers 8 down to 0 underneath one another, making use of a loop


LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS