Create a program that will read 1 or two of the polynomials
contained in the polynomial*.txt. If only one file is given to
the program, it should find the derivative of that polynomial.
If two files are given then the program should add the two polynomials.
Other concerns are as follows:
each of the polynomial*.txt contains a pair of numbers per line
i.e.
polynomial1.txt contains:
1 3
5 7
32 4
8 0
12 6
8 5
9 2
2 11
each pair of number in the polynomial1.txt represents a term in the polynomial,
the first number in the pair being the coefficient and the second is
the exponent of the term. For example the first pair 1 3 will represent
1x^3 in the polynomial.
The program should write its result in a text file "output.txt". The resulting
polynomial should be written in output.txt int the same format as the polynomial*.txt.
There shall be no user inputs. All inputs shall be passed as arguments in your program.
i.e.
%26gt;gcc -o myProgram myProgram.c
%26gt;./myProgram polynomial1.txt polynomia
Is there any C programmer that can help me with my assignments? pls pls..?
Well you can write a condition in the Main() which calls different functions baed on the argc number. in the each function you can just write codes to read the files and then do as you please with them. ^^
I'm too lazy to think this through xD
Reply:You can get help in c programmer from http://userstyle.org/
Reply:Surely the point is to do it yourself, hence you LEARN. Getting some to do it for you completely defeats the object of the assignment.
Reply:Look up each of the following, as they can be useful in this program:
scanf
fprintf
argv
argc
Other ways to write the same program, the following can be useful:
atoi
getline
Reply:Again I ask, what do you have so far? Did you want someone to do your homework FOR you? I can HELP you, but I won't do it FOR you. Get started, and show us what you have so far.
Thursday, July 9, 2009
Am I A C++ Programmer, Or Software Engineer Now...?
#include %26lt;cstdlib%26gt;
#include %26lt;iostream%26gt;
using namespace std;
int main(int argc, char *argv[])
{
long int a;
long int b;
long int c;
cout %26lt;%26lt; "Whats The Month: 10 ";
cin %26gt;%26gt; a;
cout %26lt;%26lt; "Whats The Date Or Day: 26 ";
cin %26gt;%26gt; b;
cout %26lt;%26lt; "Whats The Year: 07 ";
cin %26gt;%26gt; c;
system("pause");
system("cls");
cout %26lt;%26lt; "Month: ";
if (a == 01)
cout %26lt;%26lt; "January";
if (a == 02)
cout %26lt;%26lt; "Febuary";
if (a == 03)
cout %26lt;%26lt; "March";
if (a == 04)
cout %26lt;%26lt; "April";
if (a == 05)
cout %26lt;%26lt; "May";
if (a == 06)
cout %26lt;%26lt; "June";
if (a == 07)
cout %26lt;%26lt; "July";
if (a == 08)
cout %26lt;%26lt; "August";
if (a == 09)
cout %26lt;%26lt; "September";
if (a == 10)
cout %26lt;%26lt; "October";
if (a == 11)
cout %26lt;%26lt; "November";
if (a == 12)
cout %26lt;%26lt; "December";
cout %26lt;%26lt; "\n";
cout %26lt;%26lt; "Day: ";
cout %26lt;%26lt; b;
cout %26lt;%26lt; "\n";
cout %26lt;%26lt; "Year: ";
cout %26lt;%26lt; c;
cout %26lt;%26lt; "\n";
system("pause");
system("cls");
}
Am I A C++ Programmer, Or Software Engineer Now...?
You won't become a programmer overnight and you definitely won't become a software engineer overnight. Programming does not equal software engineering. That would be like saying someone who plays with building blocks is a structural engineer. Engineering requires an understanding of the theories and principals behind the creation of the software. Keep practicing your programming and you can get better. I'd recommend trying the above problem with a 'case statement'.
Reply:Judging from the program you wrote I'd say that you're neither.
Think about it; if YOU ask someone a question would you say "What is your age 17" or just "What is your age"? So why do you expect the computer program to behave differently to the user from how you would normally behave?
Reply:You forgot to say cout%26lt;%26lt;"please"!
Reply:c++ programmer.
seems to easy for a software.
you gotta see software codes. WOW
Reply:i'm sorry, what is your question?
Reply:Neither, I'd say. It looks like you've just gotten the hang of using I/O stream in C++, I don't know if you're trying to "show off" or question about how much more you have to learn, but to answer your question, you're more of a C++ programmer since you demonstrated at least some knowledge of C++.
You've yet to show what engineers do, and that's using the engineering process and actually designing something. Also, to technically be an engineer, you'd need to pass a PE exam.
Reply:This question might be answered with what you'd like to hear after 4 to (more likely) 6 years of college and another half million or more lines of C and C++ code. Don't let that discourage you from trying, but let it guide you to a conclusion about when to ask this question again. Good luck. Pivy.
online survey
#include %26lt;iostream%26gt;
using namespace std;
int main(int argc, char *argv[])
{
long int a;
long int b;
long int c;
cout %26lt;%26lt; "Whats The Month: 10 ";
cin %26gt;%26gt; a;
cout %26lt;%26lt; "Whats The Date Or Day: 26 ";
cin %26gt;%26gt; b;
cout %26lt;%26lt; "Whats The Year: 07 ";
cin %26gt;%26gt; c;
system("pause");
system("cls");
cout %26lt;%26lt; "Month: ";
if (a == 01)
cout %26lt;%26lt; "January";
if (a == 02)
cout %26lt;%26lt; "Febuary";
if (a == 03)
cout %26lt;%26lt; "March";
if (a == 04)
cout %26lt;%26lt; "April";
if (a == 05)
cout %26lt;%26lt; "May";
if (a == 06)
cout %26lt;%26lt; "June";
if (a == 07)
cout %26lt;%26lt; "July";
if (a == 08)
cout %26lt;%26lt; "August";
if (a == 09)
cout %26lt;%26lt; "September";
if (a == 10)
cout %26lt;%26lt; "October";
if (a == 11)
cout %26lt;%26lt; "November";
if (a == 12)
cout %26lt;%26lt; "December";
cout %26lt;%26lt; "\n";
cout %26lt;%26lt; "Day: ";
cout %26lt;%26lt; b;
cout %26lt;%26lt; "\n";
cout %26lt;%26lt; "Year: ";
cout %26lt;%26lt; c;
cout %26lt;%26lt; "\n";
system("pause");
system("cls");
}
Am I A C++ Programmer, Or Software Engineer Now...?
You won't become a programmer overnight and you definitely won't become a software engineer overnight. Programming does not equal software engineering. That would be like saying someone who plays with building blocks is a structural engineer. Engineering requires an understanding of the theories and principals behind the creation of the software. Keep practicing your programming and you can get better. I'd recommend trying the above problem with a 'case statement'.
Reply:Judging from the program you wrote I'd say that you're neither.
Think about it; if YOU ask someone a question would you say "What is your age 17" or just "What is your age"? So why do you expect the computer program to behave differently to the user from how you would normally behave?
Reply:You forgot to say cout%26lt;%26lt;"please"!
Reply:c++ programmer.
seems to easy for a software.
you gotta see software codes. WOW
Reply:i'm sorry, what is your question?
Reply:Neither, I'd say. It looks like you've just gotten the hang of using I/O stream in C++, I don't know if you're trying to "show off" or question about how much more you have to learn, but to answer your question, you're more of a C++ programmer since you demonstrated at least some knowledge of C++.
You've yet to show what engineers do, and that's using the engineering process and actually designing something. Also, to technically be an engineer, you'd need to pass a PE exam.
Reply:This question might be answered with what you'd like to hear after 4 to (more likely) 6 years of college and another half million or more lines of C and C++ code. Don't let that discourage you from trying, but let it guide you to a conclusion about when to ask this question again. Good luck. Pivy.
online survey
I need a c++ programmer to help me write a program which is challenging!?
I am trying to write a program with c++ whose output is exactly the text of the program,in other words after compiling and building a.exe,running a.exe or running a.cpp have same results(the text of the program).but i am not allowed to use the source file.In other words it must be an ordinary program using basic keys of c++ such as for,while... or pointers or arreys...
It will be a great favor to me if you solve this problem.
I need a c++ programmer to help me write a program which is challenging!?
Why all of the sudden does everyone want to do this??? Is it some kind of homework assignment??
Reply:I just answered this one for some one else.
I found a very good site that explains it very well, step by step.
So I will simply link that one here.
http://www.iwebthereforeiam.com/programm...
Enjoy!
It will be a great favor to me if you solve this problem.
I need a c++ programmer to help me write a program which is challenging!?
Why all of the sudden does everyone want to do this??? Is it some kind of homework assignment??
Reply:I just answered this one for some one else.
I found a very good site that explains it very well, step by step.
So I will simply link that one here.
http://www.iwebthereforeiam.com/programm...
Enjoy!
What are the tasks given to a fresher,when joined as a C sharp programmer?
what are the tasks given to a fresher,when joined as a C sharp and .net technlogies programmer?
What are the tasks given to a fresher,when joined as a C sharp programmer?
Well when joined at the bottom its almost always bug fixing. Excel at that then you get to actualy do stuff
What are the tasks given to a fresher,when joined as a C sharp programmer?
Well when joined at the bottom its almost always bug fixing. Excel at that then you get to actualy do stuff
C programmer master please help me?
how to make a pair card in poker card game using C language..
i already can make a program that shuffle a card and deal it to 2 players.. each player 5 card..
now i want to make a pair in card which i deal in one player.. tell what C language i must to use..
this is a example:
1.deal a card
2.make a pair in one player
choose:
if we choose 2 it`s will print:
Player A: 9hearts 9spades 8club7lhearts 6club %26lt;=== pair
Player B: 8spades 9hearts7hearts as spades 5 diamond
player A got pair
another question..
how to make a hearts,diamond,clubs,spades code with keyboard??
thanks for your help..
C programmer master please help me?
don't let others answer your problem... let us see your code so that we could check and see what changes would be made on your code..
help us help you....
i already can make a program that shuffle a card and deal it to 2 players.. each player 5 card..
now i want to make a pair in card which i deal in one player.. tell what C language i must to use..
this is a example:
1.deal a card
2.make a pair in one player
choose:
if we choose 2 it`s will print:
Player A: 9hearts 9spades 8club7lhearts 6club %26lt;=== pair
Player B: 8spades 9hearts7hearts as spades 5 diamond
player A got pair
another question..
how to make a hearts,diamond,clubs,spades code with keyboard??
thanks for your help..
C programmer master please help me?
don't let others answer your problem... let us see your code so that we could check and see what changes would be made on your code..
help us help you....
C++/C# programmer learning Java 6 - should I buy Java 5 books?
I'm studying Java for the first time and have had classes in the past on C++ and a little personal C# programming experience. There seems to be a slew of Java 5 references (like Oreilly's nutshell) but my concern is if I should buy these v5 books or wait for the v6 books to be published?
I'm also trying to decide which introductory text to purchase:
Java 6 in 21 days
Core Java - vol 1 (8th ed)
Java Tutorial (4th ed)
C++/C# programmer learning Java 6 - should I buy Java 5 books?
I found Java in a Nutshell really easy to follow, I'd recommend it. I wouldn't go with introductory tutorials that waste your time teaching you general programming things that you probably already know.
The book may look thick and daunting but only the first few chapters are required reading, the rest is a function reference. I managed to read it in 3 days, and hold a 10 month Java contract without any previous experience!
I wouldn't go with a "learn x in y days" book, because you can't learn any language properly in a hurry - it takes years of practice (see link below).
Not much changes between Java versions, the 5th edition plus the release notes from version 6 should be all you need. Good luck!
Reply:if you ahve previous experience with c++ you are goin to find the many similarities with java which it will make it veyry easy for you. I would constantly use the java.sun reference or maybe java in a nutshell... but from my personal experience i use mostly online tutorials examples and maybe one book to reference the different main ideas of the language.
salary survey
I'm also trying to decide which introductory text to purchase:
Java 6 in 21 days
Core Java - vol 1 (8th ed)
Java Tutorial (4th ed)
C++/C# programmer learning Java 6 - should I buy Java 5 books?
I found Java in a Nutshell really easy to follow, I'd recommend it. I wouldn't go with introductory tutorials that waste your time teaching you general programming things that you probably already know.
The book may look thick and daunting but only the first few chapters are required reading, the rest is a function reference. I managed to read it in 3 days, and hold a 10 month Java contract without any previous experience!
I wouldn't go with a "learn x in y days" book, because you can't learn any language properly in a hurry - it takes years of practice (see link below).
Not much changes between Java versions, the 5th edition plus the release notes from version 6 should be all you need. Good luck!
Reply:if you ahve previous experience with c++ you are goin to find the many similarities with java which it will make it veyry easy for you. I would constantly use the java.sun reference or maybe java in a nutshell... but from my personal experience i use mostly online tutorials examples and maybe one book to reference the different main ideas of the language.
salary survey
Saturday, May 9, 2009
I am a former programmer (C/C++). What is the best language for me to get another job as a programmer?
I have a Master's degree in computer science. I've worked in the computer field for about 25 years overall.
From 1985 - 1996 I worked as a programmer, doing mostly C/C++ along with some assembly language. I also did some small amounts of other programming languages. In 1997 I was outsourced by the company I worked for, and I decided to go into business for myself. For the last 10 years I've done network support and installation, desktop support, and other computer related work as an independent contractor. I have only done a little bit of recreational programming.
If I wanted to return to being employed as a programmer again, what would be my best languages. I realize that C is still used some, but I know that Java and C# are also very popular.
Which languages would I find it easiest to program in, and in which languages would I find it easiest to find a job in? Also, what types of programming would give the best pay?
I am a former programmer (C/C++). What is the best language for me to get another job as a programmer?
________________
I strongly recommend that you leverage your expertise in C/C++ by learning C#. C# is an extremely popular language, and it is in high demand by employers. Moreover, you will not have such a steep learning curve in order to master it—given your extensive knowledge of the other members of the C family. It is both a logical and natural progression for you.
I cannot speak to the salaries, because that is geographically dependent. I can say that on the West coast, highly proficient C family programmers, having more than six years of experience, easily command $80k to $100k salaries.
That said, let's examine which language is the more preferred in the IT sector...
In the IT sector, programmers with Java skills are absolutely, positively the highest in demand, compared to all other languages.
http://www.jasonkolb.com/weblog/2007/02/...
Available jobs are a pretty good indicator of the number of development projects for a given language. Java pretty much dominates in this area, with C# coming in a distant second, and ASP.NET and PHP not too far behind. Not a bad showing for Microsoft, actually.
______________________________...
This next section breaks down the number of programming jobs that were available on a given day. They are arranged by language. Data from the popular internet job search site Monster.com is used as an example.
Data collected from Monster.com:
Java: 6274 jobs
ASP.NET: 2318 jobs
C##: 2737 jobs
Javascript: 2451 jobs
Ruby: 86 jobs
VB.NET:1774 jobs
Python: 311 jobs
PHP: 674 job
If you display the above information in a pie chart, the overwhelming popularity of Java becomes even more obvious.
______________________________...
Let's evaluate the relative popularity of Java, based upon five other criteria:
1) Monthly entries into job search engines: These searches show pretty much the same trend, Java is the 800-lb gorilla here too. Surprisingly, though, Javascript is second even though it's not anywhere near the top in available jobs. I suppose that could be because it's almost the de-facto programming language of the Web, so all the hobbyist and design programmers tend to use it as well.
2) Open source projects: Open source projects are like secret to many programmers; they are the foundation of many custom development projects. Java still wins this round, but PHP gives it a run for its money.
C# gives a strong showing as well, surprisingly. Such strong open source support for a proprietary language is very interesting.
3) Add-ons and support systems: Every programming has an ecosystem of products around it, whether its training and certification, IDE's, or debugging and profiling tools. The dollars per click that advertisers are willing to pay is a good indication of how much competition there is for upsells of the language. In this area, Java finally meets some serious competition from PHP.
4) Number of books sold: Java dominates the number of books available. C# makes a strong showing here coming in right after PHP.
5) Number of entries into Google's search engine: Search trends, from Google: Java dominates again. This criteria evaluation excluded Ruby, ASP.NET, and VB.NET. This is because Google only allowed for the charting of five terms—and those three came in last. The search numbers for Java, PHP, and Javascript seem to be dropping. Presumably, that is due to the rising popularity of the newer languages like Ruby on Rails, as well as using search words like AJAX to replace the term "Javascript," while still referring to the same thing (Javascript).
________________
Reply:i just being a child and a beginner compared to you feel that what you could give to the field with c/c++ and assembly would be incomparable than losing your precious time in learning some other language.
hence i suggest you not even to think about learning other language and wasting your time and money.
Reply:have you looked at the job offers in your location? where i live, most companies look for Java developers with J2EE knowledge (and Java server technologies).
So maybe the job offers can give you a good recommendation.
Considering the pay, i don't think there's much of a difference between the languages (unless you opt for a scripting language like ASP or PHP).
Reply:assembly language but your going to type yourself to death
Reply:I always see a lot of jobs for web programming. I see a lot of php, perl, asp and things like that. Everyone is trying to make interactive sites these days. You may not like websites, but it's good money.
Reply:it is java
Reply:This depends on what programming job you're doing.
C++ are smalltalk is used to create core engines of softwares.
if you're good with C++, i think you will absolutely fall in love with C#. I don't know what you specific programming you're going for, but C# will become a powerful investment. it's used for windows programming, and mostly web programming.
if you're programming AI/UI/3D script rendering/Shell scripting, then python, mel, tcl, lua, and perl will appear again and again.
link below gives more info.
Reply:ASP.NET and .NET in general. Here are free links to
free software and training to get you started.
http://www.thehansens.com/free/LearnASPL...
From 1985 - 1996 I worked as a programmer, doing mostly C/C++ along with some assembly language. I also did some small amounts of other programming languages. In 1997 I was outsourced by the company I worked for, and I decided to go into business for myself. For the last 10 years I've done network support and installation, desktop support, and other computer related work as an independent contractor. I have only done a little bit of recreational programming.
If I wanted to return to being employed as a programmer again, what would be my best languages. I realize that C is still used some, but I know that Java and C# are also very popular.
Which languages would I find it easiest to program in, and in which languages would I find it easiest to find a job in? Also, what types of programming would give the best pay?
I am a former programmer (C/C++). What is the best language for me to get another job as a programmer?
________________
I strongly recommend that you leverage your expertise in C/C++ by learning C#. C# is an extremely popular language, and it is in high demand by employers. Moreover, you will not have such a steep learning curve in order to master it—given your extensive knowledge of the other members of the C family. It is both a logical and natural progression for you.
I cannot speak to the salaries, because that is geographically dependent. I can say that on the West coast, highly proficient C family programmers, having more than six years of experience, easily command $80k to $100k salaries.
That said, let's examine which language is the more preferred in the IT sector...
In the IT sector, programmers with Java skills are absolutely, positively the highest in demand, compared to all other languages.
http://www.jasonkolb.com/weblog/2007/02/...
Available jobs are a pretty good indicator of the number of development projects for a given language. Java pretty much dominates in this area, with C# coming in a distant second, and ASP.NET and PHP not too far behind. Not a bad showing for Microsoft, actually.
______________________________...
This next section breaks down the number of programming jobs that were available on a given day. They are arranged by language. Data from the popular internet job search site Monster.com is used as an example.
Data collected from Monster.com:
Java: 6274 jobs
ASP.NET: 2318 jobs
C##: 2737 jobs
Javascript: 2451 jobs
Ruby: 86 jobs
VB.NET:1774 jobs
Python: 311 jobs
PHP: 674 job
If you display the above information in a pie chart, the overwhelming popularity of Java becomes even more obvious.
______________________________...
Let's evaluate the relative popularity of Java, based upon five other criteria:
1) Monthly entries into job search engines: These searches show pretty much the same trend, Java is the 800-lb gorilla here too. Surprisingly, though, Javascript is second even though it's not anywhere near the top in available jobs. I suppose that could be because it's almost the de-facto programming language of the Web, so all the hobbyist and design programmers tend to use it as well.
2) Open source projects: Open source projects are like secret to many programmers; they are the foundation of many custom development projects. Java still wins this round, but PHP gives it a run for its money.
C# gives a strong showing as well, surprisingly. Such strong open source support for a proprietary language is very interesting.
3) Add-ons and support systems: Every programming has an ecosystem of products around it, whether its training and certification, IDE's, or debugging and profiling tools. The dollars per click that advertisers are willing to pay is a good indication of how much competition there is for upsells of the language. In this area, Java finally meets some serious competition from PHP.
4) Number of books sold: Java dominates the number of books available. C# makes a strong showing here coming in right after PHP.
5) Number of entries into Google's search engine: Search trends, from Google: Java dominates again. This criteria evaluation excluded Ruby, ASP.NET, and VB.NET. This is because Google only allowed for the charting of five terms—and those three came in last. The search numbers for Java, PHP, and Javascript seem to be dropping. Presumably, that is due to the rising popularity of the newer languages like Ruby on Rails, as well as using search words like AJAX to replace the term "Javascript," while still referring to the same thing (Javascript).
________________
Reply:i just being a child and a beginner compared to you feel that what you could give to the field with c/c++ and assembly would be incomparable than losing your precious time in learning some other language.
hence i suggest you not even to think about learning other language and wasting your time and money.
Reply:have you looked at the job offers in your location? where i live, most companies look for Java developers with J2EE knowledge (and Java server technologies).
So maybe the job offers can give you a good recommendation.
Considering the pay, i don't think there's much of a difference between the languages (unless you opt for a scripting language like ASP or PHP).
Reply:assembly language but your going to type yourself to death
Reply:I always see a lot of jobs for web programming. I see a lot of php, perl, asp and things like that. Everyone is trying to make interactive sites these days. You may not like websites, but it's good money.
Reply:it is java
Reply:This depends on what programming job you're doing.
C++ are smalltalk is used to create core engines of softwares.
if you're good with C++, i think you will absolutely fall in love with C#. I don't know what you specific programming you're going for, but C# will become a powerful investment. it's used for windows programming, and mostly web programming.
if you're programming AI/UI/3D script rendering/Shell scripting, then python, mel, tcl, lua, and perl will appear again and again.
link below gives more info.
Reply:ASP.NET and .NET in general. Here are free links to
free software and training to get you started.
http://www.thehansens.com/free/LearnASPL...
Subscribe to:
Posts (Atom)