# How do I convert percentages to letter grades?

**URL:** <https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304>\
**Category:** Questions about Thunkable X\
**Created:** [July 1, 2019, 7:14am UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304 "2019-07-01T07:14:39Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![jxbclothes69gc7](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jxbclothes69gc7/32/47053_2.png) [@jxbclothes69gc7](https://community.thunkable.com/u/jxbclothes69gc7)\
**Post date:** [July 1, 2019, 7:14am UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/1 "2019-07-01T07:14:39Z")

</div>

![Screenshot%20(81)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/a/ba1091629e1a4846fb466c68d029ab0f981d2c43.png)

im making a quiz app for school and at the end of result screen i want them to get a grade depending on their score i made these blocks but its not working whats the issue

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [July 1, 2019, 7:23am UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/2 "2019-07-01T07:23:53Z")

</div>

What is happening? What are the results you are getting? What are the blocks that set the score?

---

<div class="post-metadata">

**Author:** ![jxbclothes69gc7](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jxbclothes69gc7/32/47053_2.png) [@jxbclothes69gc7](https://community.thunkable.com/u/jxbclothes69gc7)\
**Post date:** [July 1, 2019, 7:33am UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/3 "2019-07-01T07:33:15Z")

</div>

basically its a quiz app every time you choose a correct answer it is saved in variable called app score  
so what i want is that if i have 100 question (app question number) in my quiz and person answers 80 correct (app score) i want it to do 80/100 x 100 = 80% which is grade B

---

<div class="post-metadata">

**Author:** ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)\
**Post date:** [July 1, 2019, 7:36am UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/4 "2019-07-01T07:36:39Z")

</div>

I get WHAT you are doing, I was asking what RESULTS you are getting as you say it isn’t working. I can’t recreate your issue based on the blocks you are showing. Somewhere you have blocks that tell the app if the answer was right or wrong and sets your score variable.

---

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [July 1, 2019, 9:17am UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/5 "2019-07-01T09:17:52Z")

</div>

First the percentage and LetterGrade are initialized to what?

Also add a new label and change label text to “percentage” variable so we know what values you are getting.

---

<div class="post-metadata">

**Author:** ![jxbclothes69gc7](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jxbclothes69gc7/32/47053_2.png) [@jxbclothes69gc7](https://community.thunkable.com/u/jxbclothes69gc7)\
**Post date:** [July 1, 2019, 10:02am UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/6 "2019-07-01T10:02:17Z")

</div>

they intitalized to nothing  
can you make blocks and show me please?

remix thunkable quiz app and show me my codes are very similiar because i remixed it for myself

---

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [July 1, 2019, 12:34pm UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/7 "2019-07-01T12:34:39Z")

</div>

well if you want help, you will have to share your app to make it much easier and faster to fix

---

<div class="post-metadata">

**Author:** ![jxbclothes69gc7](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jxbclothes69gc7/32/47053_2.png) [@jxbclothes69gc7](https://community.thunkable.com/u/jxbclothes69gc7)\
**Post date:** [July 1, 2019, 12:49pm UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/8 "2019-07-01T12:49:43Z")

</div>

i cant share app sorry 😕

---

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [July 1, 2019, 1:15pm UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/9 "2019-07-01T13:15:47Z")

</div>

Thats fine but if you truly want help, you will either tell us what the values you are getting are from the variable I asked for or share a part of the app.

---

<div class="post-metadata">

**Author:** ![jxbclothes69gc7](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jxbclothes69gc7/32/47053_2.png) [@jxbclothes69gc7](https://community.thunkable.com/u/jxbclothes69gc7)\
**Post date:** [July 2, 2019, 10:49am UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/11 "2019-07-02T10:49:49Z")

</div>

im not getting anything i just checked all i get is my score but not letter grade ;/

---

<div class="post-metadata">

**Author:** ![jxbclothes69gc7](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jxbclothes69gc7/32/47053_2.png) [@jxbclothes69gc7](https://community.thunkable.com/u/jxbclothes69gc7)\
**Post date:** [July 2, 2019, 7:35pm UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/13 "2019-07-02T19:35:42Z")

</div>

![Screenshot%20(96)](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/f/8f478c8ba599a985295168fcaff1a3f749920f44.png)

as shown i want to give letter grade depending on their result but i dont know why its not working i just tried again and i got A+ for 85 score (total questions are 136) whereas 85 out of 136 is 63% whic is not an A or A+ help !

---

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [July 2, 2019, 7:49pm UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/14 "2019-07-02T19:49:30Z")

</div>

That is because you set your logic in reverse.

Suppose someone got a score of 60%.  
First test is “is score less or equal to 95%?”

With 60%, I’d say the answer is ‘yes’, so the app says “Your garde A+ (excellent!)” which I think is not what you desire.

What you need is to check if the score is ABOVE 95.  
Change all those “≤” with “≥” and things should be OK.

Edit:  
by the way, since Alert1.Title is always set to “Your Grade”, you could put it out of test sequence. Same for the “Score2 / Question Number2 \* 100” bit, it could be calculated only once and put in a variable and then used for the comparison. In fact, all that test “if else if” block need to set is the value of Alert1.Message; the rest can be pulled out of there for a much smaller block count.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:12pm UTC](https://community.thunkable.com/t/how-do-i-convert-percentages-to-letter-grades/127304/15 "2024-11-08T12:12:25Z")

</div>


