1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
Softa [21]
2 years ago
6

write an algorithm to determine a student's final grade and indicate whether it is passing or failing. the final grade is calcul

ated as the average of 4 marks.
Computers and Technology
1 answer:
Nadusha1986 [10]2 years ago
3 0

Using the knowledge in computational language in algorithms it is possible to write the code being determine a student's final grade and indicate whether it is passing or failing.

<h3>Writting the algorithm :</h3>

<em>Start</em>

<em>Take 4 integer inputs for the different 4 subject like math, english, physics, chemistry.</em>

<em>Then calculate the grade based upon the average of four marks .</em>

<em>             grade = ( math + english + physics + chemistry ) / 4</em>

<em> if the value of the grade is more than 40, it will print pass otherwise it shows fail.</em>

<em>END</em>

See more about algorithm at brainly.com/question/22984934

#SPJ1

You might be interested in
The Java compiler does not check for an ArrayIndexOutorBoundsException during the compilation of a program containing arrays. O
yulyashka [42]

Answer:

TRUE

Explanation:

  • Let us first understand what is an ArrayIndexOutOfBounds Exception.
  • As the name itself suggests the index for the array has gone out of bound (permissible value) and an exception (anamoly) is resulted.
  • So, it throws an error.
  • That means if an array, Employee of size n is defined then the permissible elements are Employee[0] to Employee[n-1]. If any negative index or with the index is greater than n-1 is tried to access it throws an error saying ArrayIndexOutOfBounds Exception.
  • In java, during the compilation of the program the compiler doesn't check for the ArrayIndexOutOfBounds Exception.It checks during running the program.
  • So, it is called a Runtime Exception.
7 0
3 years ago
You created an outline within a worksheet. what does the button indicate to the left of a row heading?
cricket20 [7]
<span>Business Name (default field), State (correct field)</span>
3 0
3 years ago
What is the smallest group network
astra-53 [7]

LAN, MAN, MLAN, WAN, SAN, PAN ETC.

6 0
3 years ago
What is a current Gdp and what is a real Gdp?
SpyIntel [72]
Do u mean GPD? OORRR
5 0
3 years ago
Read 2 more answers
A security analyst recommends implementing SSL for an existing web service. A technician installs the SSL certificate and succes
forsale [732]
C- I think. I hope this helps you.
4 0
3 years ago
Other questions:
  • What does N represent when analyzing algorithms?
    15·1 answer
  • What is the definition of D1-D4?
    14·1 answer
  • Write a function all_cats that consumes a comma-separated string of animals and prints whether all of the animals have "cat" in
    12·1 answer
  • Which of the following statements is true about a file stream?
    5·1 answer
  • To comply with ATC instructions for altitude changes of more than 1,000 feet, what rate of climb or descent should be used?
    5·1 answer
  • What do you need for digital photography? 1. 2. 3.
    13·1 answer
  • What describes a group of cells?<br> O crowd<br> Orange<br> O set<br> gangle
    7·2 answers
  • When an organizatin needs a program to do a very specific job, it mayhire someone to write _____ software.​
    10·1 answer
  • Write a static method that implements a recursive formula for factorials. Place this method in a test program that allows the us
    6·1 answer
  • . prevalence of coronary artery disease in patients with isolated aortic valve stenosis. br heart j. 1984;51:121–4.
    14·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!