Hello everyone,
Please, by mercy of God, kindly help me. I will like to create an app that can calculate assignments and final marks as following:
Field1=Assignment1
Field2=Assignment2
Field3=Assignment3
Field4=Exam marks
1x button. User will click to do the calculations
1xText field dispalying the year mark. The user must NOT be able to edit or update this field
1xText field to display the Final Mark.
1xText field displaying where the mark is a fail, pass or distinction. Fail is a mark below 50% and distinction a mark above 75%. The user must NOT be able to edit or update this field.
The calcuation to determine the Year mark is as follow:
YearMark= Assignment1 x .15 + Assignment2 x .35 + Assignment3 x .50
The calculation to determine the Final Mark:
FinalMark = YearMark x .49 + ExamMark x .51
I created my codes as following, but giving me error:
final Editext eAss1 = (EditText)findViewById(R.id.ass1)
final EditTtext eAss2= (EditText)findViewById(R.id.ass2)
final EditTetext eAss2 = (EditText)findViewById(R.id.ass3)
final EditTtext eExamMark = (EditText)findViewById(R.id.ExamMark)
TextView errorMessage = (TextView)findViewById(R.Id.errorMessage)
TextView finalPerc = (TextView)findViewById(R.Id.finalPerc)
TextView failOrPass = (TextView)findViewById(R.Id. failOrPass)
From my above codes. I dont know what to do. To calculate the assignments calculations in my app?
Please, kindly find the attached to see how my codes were created.
Please, kindly help me.
Thank you.
Please, by mercy of God, kindly help me. I will like to create an app that can calculate assignments and final marks as following:
Field1=Assignment1
Field2=Assignment2
Field3=Assignment3
Field4=Exam marks
1x button. User will click to do the calculations
1xText field dispalying the year mark. The user must NOT be able to edit or update this field
1xText field to display the Final Mark.
1xText field displaying where the mark is a fail, pass or distinction. Fail is a mark below 50% and distinction a mark above 75%. The user must NOT be able to edit or update this field.
The calcuation to determine the Year mark is as follow:
YearMark= Assignment1 x .15 + Assignment2 x .35 + Assignment3 x .50
The calculation to determine the Final Mark:
FinalMark = YearMark x .49 + ExamMark x .51
I created my codes as following, but giving me error:
final Editext eAss1 = (EditText)findViewById(R.id.ass1)
final EditTtext eAss2= (EditText)findViewById(R.id.ass2)
final EditTetext eAss2 = (EditText)findViewById(R.id.ass3)
final EditTtext eExamMark = (EditText)findViewById(R.id.ExamMark)
TextView errorMessage = (TextView)findViewById(R.Id.errorMessage)
TextView finalPerc = (TextView)findViewById(R.Id.finalPerc)
TextView failOrPass = (TextView)findViewById(R.Id. failOrPass)
From my above codes. I dont know what to do. To calculate the assignments calculations in my app?
Please, kindly find the attached to see how my codes were created.
Please, kindly help me.
Thank you.
