programming forums Java Java JSRs Mobile Certification Databases Caching Books Engineering OS Languages Paradigms IDEs Build Tools Frameworks Products This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Sheriffs:
Saloon Keepers:
Bartenders:

# need help to write java code for this

rahuljava mahajan
Greenhorn
Posts: 1
There is a school, Which has got 10 standards. 1,2,3,4,5,6,7,8,9,10
Every standard has 50 students
Each standards has 8 subjects associated with it : English , Math science, Hindi, History, Hindi, Arts,Sanskrit.

Every year there are 14 tests taken
Assessments are a group/category of one or more tests:
There are different assessments types like Fa1, Fa2, Fa3, Fa4, Sa1,Sa2

For term 1
Fa1 has 4 tests of 20 marks each. Fa1 = t1+ t2+ t3+ t4.
Fa2 has 2 tests of 50 marks each. Fa2 = t5 + t6.
Sa1 has 1 test of 100 marks each Sa1 = t7.

For term 2
Fa3 has 4 tests of 20 marks each. Fa3 = t8+ t9+ t10+ t11
Fa4 has 2 tests of 50 marks each. Fa4 = t12+ t13+
Sa2 has 1 test of 100 marks each Sa1 = t14

For the Annual calculation certain preferences are considered from these assessments .
10% of preferences of marks is taken from Fa1 and Fa3
20% of preferences of marks is taken from Fa2 , Fa4
30% of preferences of marks is taken from Sa1 and Sa2

So the final marks calculations is
Term1 = Fa1 (10%) + Fa2(10%) + Sa1(30%) = 50%
Term2 = Fa3 (10%) + Fa4(10%) + Sa2(30%) = 50%
Full Year = Term1 + Term2 . = 100%

Write a program in java to
Take input of marks for all 14 tests for 5 students
Process the marks for Fa1 ,Fa2, Fa3, Fa4, Sa1, Sa2, Term1 and Term2 and Year.

Jeanne Boyarsky
author & internet detective
Marshal
Posts: 37465
539
Welcome to CodeRanch! We are NotACodeMill, which means nobody is going to just write the code. We will help you figure it out though.

The first thing you need to decide is what format you are going to store the data in to input it. Are you going to type it in interactively? Is it going into a file?

Ashish Dutt
Ranch Hand
Posts: 172
Hello Rahul,

As rightly pointed out by Jeanne, we at the Java Ranch work a lil bit differently, here the onus is on creativity and not on plagiarism.
For that there are a plethora of material that could be mined from the world wide web of junk.
Do let us know how do you intend to tackle this problem, like Jeanne asked "Would you be using File?" or would you be using Collections or just plain arrays?