Hello i have a project to write a program that takes 2 binomials from a text file then factor them and output it into another text file. I'm curious on how to begin going about this do i take the 2 binomials such as (x+5)(x+9) and put them in a string or is there a function to multiply with () any advice on how to get started would be appreciated
acoxia 26 Newbie Poster
Recommended Answers
Jump to PostIs that how the binomials are saved to the file? If so, then you will need load it into a string, then parse the string. If you aren't looking for robustness and user usability, you could just say the 4th and 9th letter in the string are to be used …
Jump to PostWell i dont get it , You are given two Binomails as input and then you are required to split them ..
This is very simple. I GUESS you could just search for "(" start and ")" and give out the value in between as a factor.
Unless …
Jump to PostWell You will need a pretty complicated program to do so .
This will involve a lot of playing with strings .
First you will need to segregate both of the functions .
therefore you will need a function which will search for "(" and store the …
All 12 Replies
skatamatic 371 Practically a Posting Shark
gregorynoob 2 Junior Poster in Training
acoxia 26 Newbie Poster
Sky Diploma 571 Practically a Posting Shark
acoxia 26 Newbie Poster
Sky Diploma 571 Practically a Posting Shark
Sky Diploma 571 Practically a Posting Shark
Freaky_Chris 299 Master Poster
Sky Diploma 571 Practically a Posting Shark
gregorynoob 2 Junior Poster in Training
Sky Diploma 571 Practically a Posting Shark
acoxia 26 Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.