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
Active Questions
  • Statistics Discussion: The accuracy of a forecasting technique is evaluated especially using the MSE (mean squared...
    asked 1 minute ago
  • If the U.S. government manages to close a recessionary gap and achieve potential GDP with fiscal...
    asked 5 minutes ago
  • A block with mass 10kg is on a ramp angled at 20 degrees above the horizontal,...
    asked 5 minutes ago
  • I have a sample of 31 7thgrade girls who took an IQ test.  I calculated the sample...
    asked 13 minutes ago
  • A researcher wishes to estimate the proportion of adults who have​ high-speed Internet access. What size...
    asked 13 minutes ago
  • Brick column in the external corridor of a house, with section size of 440 mm X520...
    asked 14 minutes ago
  • 17.                             Mel has a(n) __________ lien on Ellen’s car after he replaced her clutch. The lien.
    asked 21 minutes ago
  • Jackson Company engaged in the following investment transactions during the current year. Feb 17,Purchased  430 shares of...
    asked 32 minutes ago
  • When might discrimination in the workplace be justified? Might discrimination on the basis of gender or...
    asked 43 minutes ago
  • The strength grade of materials used for brick masonry at a certain site is as follows:...
    asked 58 minutes ago
  • Show (prove), from the original definition of the integers, that subtraction of integers is well defined....
    asked 1 hour ago
  • How is polarity of a "bond" different than polarity of a "molecule?" What makes a particular...
    asked 1 hour ago