Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3440048
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 18, 20262026-05-18T08:23:08+00:00 2026-05-18T08:23:08+00:00

A method calculates the percentage of 2 given in points (for example 15/20 and

  • 0

A method calculates the percentage of 2 given in points (for example 15/20 and 16/20) and returns the total %.

But the problem is when i try to add weight to those values.
Meaning standard weight factor 1 and weight factor 2 for both values are set on 1 (normal % calculation).

But how exactly do i add weights to them?
Assuming i want to add a weight factor of 2 to the first value and leave the second one to standard(1). (So a certain score is more important then a other, hence the % changes.)

Calculation with integers
input 15 and 16 (score on /20)
With default weight factors (1 & 1) the overal percentage would be 77

If the weight factors are changed to 2 (for 15) and standard 1 (for 16) the total % would be 76.

What would be the best way to implement this, cannot find anything about this.

Regards.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-18T08:23:09+00:00Added an answer on May 18, 2026 at 8:23 am

    Firstly,

    ((15/20)+(16/20)) / 2 = 0.775 (77.5%)

    instead of 77% (you shouldn’t round until you perform a final calculation, e.g. for a grading system, different assignment types would have different weights and systems should never round until they display a final percentage.)

    To weight one amount as 2 instead of 1, you would take the amount into account twice:

    ((15/20)+(15/20)+(16/20)) / 3 = 0.766
    (76.6%)

    (I know this because I have great knowledge of Pearson’s PowerSchool)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am a little confused on how exactly postScale method calculates the values of
Example class in pseudocode: class SumCalculator method calculate(int1, int2) returns int What is a
I currently got the following method, which is returning me percent-values. For example for
I have a method that calculates intraclass correlation based off a datatable of values.
I have following method that that calculates distance and returns it in miles: public
I'm just looking for a method that calculates the total hours from nsdate (does
I have written a method to calculate a given percentile for a set of
The following method calculates cost. It access other classes when required. Cloud class holds
Just a quick newbie question here. I have a method that calculates a value
I have a method to calculate the exponent, but it doesnt like the c

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.