Question

Scenario: You recently started working as the mobile app developer for a University and have been...

Scenario: You recently started working as the mobile app developer for a University and have been assigned to build a mobile app that calculates the students' grade. Your app should contain following screens:

Screen 1

  1. Labels for subject1, subject2, and subject3
  2. Textboxes for subject1, subject2, and subject3
  3. Labels for MaxGrade, MinGrade, and Avg.Grade
  4. Submit button
  5. Once user clicks submit button, you need to display letter grade in a label

Screen 2

  1. Screen that allows students to register for the course
  2. Once student register for the course, then the first screen should be updated dynamically with subjectnumber
  3. Once the subject is added in screen 1, then your dynamic control needs to have same validations applied as screen 1.

You also need to have following validations in your mobile app.

  1. Subject1, Subject2, Subject3 and any dynamic generated subjects values should be less than 100
  2. Subject1, Subject2, Subject3 and any dynamic generated subjects are required fields
  3. It is not possible to click submit button without entering Subject1, Subject2, Subject3 and any dynamic generated subjects.

Follow this step by step approach to resolve this problem.

  1. Create the android studio project
  2. Use Android studio layout editor
  3. Add textboxes and labels
  4. Add Button in the UI
  5. Create the required field validation for Subject1, Subject2, and Subject3 text boxes
  6. Create the validation to ensure Subject1, Subject2 and Subject3 textbox values should be numeric only and less than 100
  7. Run the entire project and validate the output screen

You need to submit following items in a zip file as part of thesubmission.

  • Android Project
  • Output screenshots

Question 2

Scenario: Once your UI is defined in Question 1, you need to create the logic to display the letter grade. You need to display the letter grade as soon as the user clicks the submit button in your app. Your app should calculate the logic as described below.

(Subject1+Subject2+Subject3/300)*100

If the output is between 90-100, then grade A

If the output is between 80-90, then grade B

If the output is between 70-80, then grade C

If the output is below 70, then grade F

  1. Update the existing project from Question 1
  2. Create Max, Min subject grade label
  3. Use if else loop to create the conditional logic on button click events
  4. Display the output
  5. Declare the variable before the oncreate function
  1. Calculate the minimum value from subject 1, subject 2, subject 3 and any dynamic generated subjects.
  2. Calculate the Maximum value from subject 1, subject 2, subject 3 and any dynamic generated subjects.

You need to submit following items in a zip file as part of submission.

  • Android Project
  • Output screenshots

Homework Answers

Answer #1

1. adding buttons and labels from toolbar. and give size as u required

2. adding all the subjects marks by taking variables with the command of number(num).

3. calculate the total marks and total marks are put in different variable so that it is easier to compare.

4. now use this type of conditions :-

  • if(x == y) // If x is equal to y
  • if(x != y) // If x is not equal to y
  • if(x > y) // If x is greater than y
  • if(x < y) // If x is less than y
  • if(x >= y) // If x is greater than or equal to y
  • if(x <= y) // If x is less than or equal to y      

5. now print according

If the output is between 90-100, then grade A

If the output is between 80-90, then grade B

If the output is between 70-80, then grade C

If the output is below 70, then grade F

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
You recently started working in at a University in the Math department as a software programmer....
You recently started working in at a University in the Math department as a software programmer. You need to build an app that can calculate the mod of two numbers. Users need to enter num1 and num2. The app should perform the calculation and display the output as num1 mod nub2 operation. For example, 25 mod 5=0 24 mod 5 = 4 Once you implement the mod operations, then you need to add following buttons. Addition Subtraction Division Power Follow...
I need the java code for a 4-function calculator app on android studio. Please make sure...
I need the java code for a 4-function calculator app on android studio. Please make sure all the requirements shown below are followed (such as the error portion and etc). The topic of this app is to simply create a 4 function calculator which calculates math expressions (add, subtract, multiply, and divide numbers). The requirements are the following : - The only buttons needed are 0-9, *, /, +, -, a clear, and enter button - Implement the onclicklistener on...
I've posted this question like 3 times now and I can't seem to find someone that...
I've posted this question like 3 times now and I can't seem to find someone that is able to answer it. Please can someone help me code this? Thank you!! Programming Project #4 – Programmer Jones and the Temple of Gloom Part 1 The stack data structure plays a pivotal role in the design of computer games. Any algorithm that requires the user to retrace their steps is a perfect candidate for using a stack. In this simple game you...
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT