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.
The national earthquake information center characterizes the effect of
earthquakes based on Richter scale numbers. Write a C program to implement
the following decision table
.
Ritcher scale number (n)
Characterization
n<5.0
Little or no damage
5.0 <= n < 5.5
Some damage
5.5 <= n < 6.5
Serious damage: Walls may crack or fall
6.5 <= n < 7.5
Disaster: houses and buildings may collapse
Higher
Catastrophic: most
buildings destroyed
In the class LambdaExercise, create following static variables
1. countries of type List<String>
2. countryCapitals of type Map<String, String>
Why does the new ArrayList() in my code errors. I don't get It. Can someone help me, its really urgent. Thanks
public static ArrayList<String> sub = new ArrayList();
public static ArrayList<String> subCourse = new ArrayList();
for example sample input= 4 , print right angle trangle in numbers like ,reverse order
1
121
12321
1234321
like this can solve this for mee ?
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.
Area of Square
Given an MxN matrix filled with
The first line of input will be containing two space-separated integers, denoting M and N.
The next M lines will contain N space-separated integers, denoting the elements of the matrix.
The output should be a single line containing the area of the maximum square.
For example, if the given M, N and elements of matrix are as the following
4 5
X O X O O
X O X X X
X X O X X
X O O X O
The matrix from indices (1, 3) to (2, 4) has the maximum square with
X. So the output should be the area of the maximum rectangle with X, which is 4.
Sample Input 1
4 5
X O X O O
X O X X X
X X O X X
X O O X O
Sample Output 1
4
Sample Input 2
3 3
O X X
O X X
O O O
Sample Output 2
4
a = [int(i) for i in input("Enter list of numbers: ").split()]
please explain this line in detail
Question:
Develop a solution, that will accept 10 students details such Student Name, ID No. and Marks of three subjects (All marks entered by the user must be within the range of 0 -100). Calculate the average marks for the student and the average marks will determine the final grade of the student. The assessment will be as follow:
70 –100 : A
60 –69 : B
50 –59 : C
40 – 49 : D
0 –39 : F
(a) Develop PAC
(b) Develop IPO
(c) Develop a Data Dictionary
(d) Develop Flowchart
(e) Develop an algorithm
create a program that will ask the user two numbers and then the program will display the original arrangements of the two numbers and also it will display the swap arrangement of two numbers on the screen
// Author: Mr jake R. pomperada, BSCS, MAED- IT
// Date: august 14, 2018 Tuesday
// Location: Bacolod City, Negros occidental
// Website: http://www.jakerpompereda.com