• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Program in C#

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
How can I solve this problem as a program?
Screenshot_1.png
[Thumbnail for Screenshot_1.png]
 
lowercase baba
Posts: 13091
67
Chrome Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have a specific question?  Vague questions get vague answers.

Q: How can I solve this problem as a program?
A: Write a program to solve it.

We're not going to hand out answers to homework problems.  Nobody here will just write the code for you. Besides, if they did, you'd get in trouble for academic dishonesty.

What SPECIFIC questions do you have? Where EXACTLY are you stuck?
 
Rancher
Posts: 326
14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hmm, can't remember which grade - but I had to solve a similar question in primary school - so the actual math behind it is not that complicated - also writing that into a few lines of code isn't something to struggle with - forming it into an algorithm which can be used to calculate the result for any given delta-time seems the hard part.

It's just a more complicated way of this basic math problem: "train a starts in city a with speed a towards b - so does train b with speed b starts at time b towards a - when and where will the meet at what speed" - common primary school math problem with litterally couple 100s of YT videos
 
Don't mess with me you fool! I'm cooking with gas! Here, read this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic