| | |
We only give homework help to those who show effort
Please support our Computer Science advertiser: Learn about neural networks and artificial intelligence.
![]() |
I strongly support your ideas. I don't know if guys are aware of this or not, but students tend to ask you questions not just online, but also face to face. I have had some friends in the past, who wouldn't try at all and asked me to do it from scratch. Instead of saying "Could you look at my code and see what's wrong"?, they say "could you do this for me, please"? That's why I don't like to go to my college's computer lab, eh?
Luckydude
Luckydude
Lovin' might be a mistake but it's worth makin'
•
•
•
•
Originally Posted by luckydude
...I have had some friends in the past, who wouldn't try at all and asked me to do it from scratch. Instead of saying "Could you look at my code and see what's wrong"?, they say "could you do this for me, please"?
*-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
*I am the oceans.. Still, still yet always in constant *
*motion.Quiet but never afraid,Silent but always awake*
*And no God nor Man can control where you roam.. no *
*boundaries cast forever you last.... *
*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
*I am the oceans.. Still, still yet always in constant *
*motion.Quiet but never afraid,Silent but always awake*
*And no God nor Man can control where you roam.. no *
*boundaries cast forever you last.... *
*=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
•
•
Join Date: Jan 2005
Posts: 1
Reputation:
Solved Threads: 0
I am not asking anyone to do my work for me. I am asking for help on how to solve these problems? I am a beginner and I am just trying to find some examples step by step on how to work these problems out. Attached are the problems that I am trying to solve. Again, I need examples that will take me step by step thru the process.
No 1.
Write a C++ program that read two integer values from input and print the larger
of the two integers to the output.
No. 2
a. Read the problem statement.
b. Formulate the algorithm using pseudocode and top-down, stepwise refinement
c. Write a C++ program
d. Test, debug and execute the C++ program
Drivers are concerned with mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording miles driven and gallons used for each thankful. Develop a C++ program that uses a while structure to input the mils driven and gallons used for each thankful. The program should calculate and display the miles per gallon obtained for each thankful. After processing all input information, the program should calculate and print the combined miles per gallon obtained for all tankfuls.
Enter the gallons used (-1 to end) : 12.8
Enter the miles driven: 287
The miles / gallon for this tank was 22.421875
Enter the gallons used (-1 to end) : 10.3
Enter the miles driven: 200
The miles / gallon for this tank was 19.417475
Enter the gallons used (-1 to end) : 5
Enter the miles driven: 120
The miles / gallon for this tank was 24.000000
Enter the gallons used (-1 to end) : -1
The overall average miles/gallon was 21.601423
No 3.
The process of finding the largest number (i.e., the maximum of a group of numbers) is used frequently in computer applications. For example, a program that determines the winner of a sales contest would input the number of units sold by each salesperson. The salesperson who sells the most units wins the contest. Write a pseudocode program, then a C++ program that uses a while structure to determine and print the larges number of 10 numbers input by user. Your program should use three variables, as follows:
Counter: A counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed).
Number: The current number input to the program.
Largest: The largest number found so far.
No 1.
Write a C++ program that read two integer values from input and print the larger
of the two integers to the output.
No. 2
a. Read the problem statement.
b. Formulate the algorithm using pseudocode and top-down, stepwise refinement
c. Write a C++ program
d. Test, debug and execute the C++ program
Drivers are concerned with mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording miles driven and gallons used for each thankful. Develop a C++ program that uses a while structure to input the mils driven and gallons used for each thankful. The program should calculate and display the miles per gallon obtained for each thankful. After processing all input information, the program should calculate and print the combined miles per gallon obtained for all tankfuls.
Enter the gallons used (-1 to end) : 12.8
Enter the miles driven: 287
The miles / gallon for this tank was 22.421875
Enter the gallons used (-1 to end) : 10.3
Enter the miles driven: 200
The miles / gallon for this tank was 19.417475
Enter the gallons used (-1 to end) : 5
Enter the miles driven: 120
The miles / gallon for this tank was 24.000000
Enter the gallons used (-1 to end) : -1
The overall average miles/gallon was 21.601423
No 3.
The process of finding the largest number (i.e., the maximum of a group of numbers) is used frequently in computer applications. For example, a program that determines the winner of a sales contest would input the number of units sold by each salesperson. The salesperson who sells the most units wins the contest. Write a pseudocode program, then a C++ program that uses a while structure to determine and print the larges number of 10 numbers input by user. Your program should use three variables, as follows:
Counter: A counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed).
Number: The current number input to the program.
Largest: The largest number found so far.
•
•
Join Date: Mar 2005
Posts: 8
Reputation:
Solved Threads: 0
I believe that if people ask smaller questions, such as...
How do I create a command button on my form and add code to it
...then we would be better off. I have not yet seen an entire project posted on this forum, just explainations. But I haven't been on long though.
I think that people should make their own decisions, even if they are bad ones they can still learn from their mistakes. If a person does not get an answer here, they may move to a different site and this one would lose customers. If you allow people to make their own decisions your site will be more widely liked and you will get more money from ad companies such as google and globalspec.
How do I create a command button on my form and add code to it
...then we would be better off. I have not yet seen an entire project posted on this forum, just explainations. But I haven't been on long though.
I think that people should make their own decisions, even if they are bad ones they can still learn from their mistakes. If a person does not get an answer here, they may move to a different site and this one would lose customers. If you allow people to make their own decisions your site will be more widely liked and you will get more money from ad companies such as google and globalspec.
I totally agree when you say that we should help only those who try. This is my first post and I would like to mention this incident:
I am a professional java programmer and I am registered to another forum for students who do java homework. The reason why I registered was because NO one ever taught me how to write java. I had to discover many things on my own. That's why I wanted to see if I could help them with their questions because no one ever helped me. (by the way they don't know what I do for a living when I reply).
Anyway once a student sent me the compile error messages that his program had and asked for my help. I told him the messages he received clearly state what the error was and at which line (ex. he forgot to put a ';' and the message told him the line this happened).
He replied by saying that he knows what the messages mean but he wants me to tell him exactly what to fix in his code and how to write it!
Of course I told him no and gave him some pointers on how to interpret the messages the compiler gives. I didn't register just to do their homework for them. That would be terribly easy and extremely WRONG. Some of them have great ideas when writing code and those I do help with some tips
I am a professional java programmer and I am registered to another forum for students who do java homework. The reason why I registered was because NO one ever taught me how to write java. I had to discover many things on my own. That's why I wanted to see if I could help them with their questions because no one ever helped me. (by the way they don't know what I do for a living when I reply).
Anyway once a student sent me the compile error messages that his program had and asked for my help. I told him the messages he received clearly state what the error was and at which line (ex. he forgot to put a ';' and the message told him the line this happened).
He replied by saying that he knows what the messages mean but he wants me to tell him exactly what to fix in his code and how to write it!
Of course I told him no and gave him some pointers on how to interpret the messages the compiler gives. I didn't register just to do their homework for them. That would be terribly easy and extremely WRONG. Some of them have great ideas when writing code and those I do help with some tips
Last edited by javaAddict; Dec 13th, 2007 at 6:05 am. Reason: fixed syntax errors
•
•
•
•
No 1.
Write a C++ program that read two integer values from input and print the larger
of the two integers to the output.
No. 2
a. Read the problem statement.
b. Formulate the algorithm using pseudocode and top-down, stepwise refinement
c. Write a C++ program
d. Test, debug and execute the C++ program
Drivers are concerned with mileage obtained by their automobiles. One driver has kept track of several tankfuls of gasoline by recording miles driven and gallons used for each thankful. Develop a C++ program that uses a while structure to input the mils driven and gallons used for each thankful. The program should calculate and display the miles per gallon obtained for each thankful. After processing all input information, the program should calculate and print the combined miles per gallon obtained for all tankfuls.
Enter the gallons used (-1 to end) : 12.8
Enter the miles driven: 287
The miles / gallon for this tank was 22.421875
Enter the gallons used (-1 to end) : 10.3
Enter the miles driven: 200
The miles / gallon for this tank was 19.417475
Enter the gallons used (-1 to end) : 5
Enter the miles driven: 120
The miles / gallon for this tank was 24.000000
Enter the gallons used (-1 to end) : -1
The overall average miles/gallon was 21.601423
No 3.
The process of finding the largest number (i.e., the maximum of a group of numbers) is used frequently in computer applications. For example, a program that determines the winner of a sales contest would input the number of units sold by each salesperson. The salesperson who sells the most units wins the contest. Write a pseudocode program, then a C++ program that uses a while structure to determine and print the larges number of 10 numbers input by user. Your program should use three variables, as follows:
Counter: A counter to count to 10 (i.e., to keep track of how many numbers have been input and to determine when all 10 numbers have been processed).
Number: The current number input to the program.
Largest: The largest number found so far.
"You know you're a computer geek when you try to shoo a fly away from the monitor screen with your cursor. That just happened to me. It was scary." - Juuso Heimonen.
"The only truly secure computer is one buried in concrete, with the power turned off and the network cable cut." - Anonymous.
"The only truly secure computer is one buried in concrete, with the power turned off and the network cable cut." - Anonymous.
![]() |
Other Threads in the Computer Science Forum
- Previous Thread: How do you prove the following is a bad idea?
- Next Thread: HELP: pseudocode algorithm
Views: 20892 | Replies: 52
| Thread Tools | Search this Thread |
Tag cloud for Computer Science
ai algorithm algorithms assignment assignmenthelp assignments battery bigbrother binary bittorrent bletchleypark blogging bomb business clueless codebreaker compiler computer computerscience computertrackingsoftware connect conversion csc data dataanalysis dataintepretation development dfa dissertation dissertationtopic ebook employment energy extensions foreclosure foreclosuresoftware fuel geeks givemetehcodez government graphics hardware history homeowners homework homeworkassignment homeworkhelp humor ibm idea ideas internet iphone ipod jobs kindle laser laws lazy linkbait lsmeans mainframes marketing mining mobileapplication nano netbeans news os p2p parser piracy piratebay programming rasterizer research sam-being-cute sas science security simulation software spoonfeeding spying sql sql-server stephenfry student supercomputer supercomputing sweden syntactic technology tree turingtest two'scompliment uk virus warehouse ww2






