#Help for a coding assignment

40 messages · Page 1 of 1 (latest)

crisp depot
#

I’ve been trying to figure out how 64% was obtained for the last few hours and made no progress, I tried dividing 3 by 15, but I’ve gotten nowhere please help, the assignment deadline is tomorrow morning and I’m trying to figure out the mathematical formula for this so I can code it into python

zealous lotusBOT
#
  1. Do not ping the Moderators, unless someone is breaking the rules.
  2. Do not ping the Helper Moderators, unless there is a conflict between helpers.
  3. Do not ping other members randomly for help.
  4. Ask your question and show the work you've done so far. If you've posted a screenshot of a question, specify which part you need help with.
  5. Wait patiently for a helper to come along.
  6. If the Helper has answered your question, remember to thank them with the Mathematics Ranks bot and close the thread with:

+close
Feel free to nominate the person for helper of the week in #helper-nominations
If you're happy with the help you got here, and the server overall, you can contribute financially as well:

bitter bronze
#

how have you tried to calculate the percentage?

crisp depot
#

Yes

#

And it doesn’t match up to 64%

crisp depot
#

I divided 15 by 3

#

Then after that I wasn’t sure how to progress onwards

torn spire
#

Divided by the area of the whole cake

#

@crisp depot

crisp depot
torn spire
#

Mhm

crisp depot
#

Since the length measurement by inches is 15 inches given from an earlier code

torn spire
#

16 pieces of area 3^2 over 15^2

crisp depot
#

…hm

#

And how do you get the edge pieces?

torn spire
#

Where s is the side lengths of the cake

#

s/3 gives us the amt of pieces on each cake, on each side

#

4(s/3) gives us the amount of pieces total the sides, but we double count 4 pieces

#

So we minus those pieces off

#

@crisp depot

bitter bronze
analog bobcatBOT
#

nivéd

crisp depot
#

Alright, cool

#

How did they get the amount of edge pieces though?

#

Like in the example, why did they convert the 15 in side into 16 edge pieces?

crisp depot
#

Nvm I found out

torn spire
#

I gave you the answer😭

#

@crisp depot

crisp depot
#

Aaaah I’m blind 💀

#

My bad

#

Thanks though

finite sigilBOT
#

@crisp depot

:HelpIcon:| Help Reminder

Hello riyku_u, this is a friendly reminder that your help request has been inactive for more than 24 hours. If you no longer need assistance, please consider closing the thread using the +close command. This thread will be automatically closed in 3 days if it remains inactive.

crisp depot
#

+close

finite sigilBOT
# crisp depot +close
Please thank your Helpers before closing!

Please thank the helpers who assisted you by clicking the buttons below. You can thank each helper only once. Once you're done, click "Close Post" to close this thread.