Advertisement
Guest User

Untitled

a guest
Oct 17th, 2017
61
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.94 KB | None | 0 0
  1. Input "What is the percent of the first item?",item1
  2. Input "What is the percent of the first item?",item2
  3. Input "What is the weight?",weight
  4. Input "What is the main percent?",percent
  5. If item1<percent:Then
  6. percent[neg]item1->item1
  7. Else
  8. item1[neg]percent->item1
  9. End
  10. If item2<percent:Then
  11. percent[neg]item2->item2
  12. Else
  13. item2[neg]percent->item2
  14. End
  15. item1+item2->total
  16. item1/total->item1percent
  17. item2/total->item2percent
  18. item1percent*100->item1percentdisplay
  19. item1percent*100->item2percentdisplay
  20. Disp "The percent of item1 of the total is"+ item1percentdisplay
  21. Disp "The perceny of item2 of the total is"+ item2percentdisplay
  22. weight*item1percent->item1weight
  23. weight*item2percent->item2weight
  24. Disp "The weight of item1 is"+ item1weight
  25. Disp "The weight of item2 is"+ item2weight
  26. weight[neg]item1weight[neg]item2weight->crudeweight
  27. Disp "The crude weight is"+ crudeweight
  28. Disp "----------------------------"
  29. Disp "Program made by Trig!"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement