•
•
•
•
What is DaniWeb IT Discussion Community?
You're currently browsing the Computer Science and Software Design section within the Software Development category of DaniWeb, a massive community of 392,080 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 3,998 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our Computer Science and Software Design advertiser:
Views: 13554 | Replies: 49
![]() |
Yes! Yes! Finally someone is taking a stand!
Assistant Manager, Regional Pharmacy Information Systems
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
TLC Services Website (Under Construction)
Updated : ASP.Net Login Code
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'
•
•
Join Date: Feb 2004
Location: Philippines
Posts: 455
Reputation:
Rep Power: 5
Solved Threads: 12
•
•
•
•
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 sympathize... I just hate it when they do that...
*-=-=-=-=-=-=-=-==-=-=-=-=-=-=-=-=-=-=-=-=-=-=*
*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: Nov 2003
Location: Rio de Janeiro - Brasil
Posts: 30
Reputation:
Rep Power: 5
Solved Threads: 2
•
•
Join Date: Jan 2005
Posts: 1
Reputation:
Rep Power: 0
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:
Rep Power: 0
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 5: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.
Looking at such things (I've seen many more on DaniWeb), I really feel sorry for people (this includes myself) that get such requests.. I just can't understand how easily people rely on someone else to start coding from scratch for them. More frustrating are the lot that say, "Hey, I'm not at all asking you to code for me, I just want some tips/suggestions on how to start... ". When someone helps a bit, the next thing they say is: "Hey, I really cannot understand how to implement the algorithm you described... Would you please... ". Huh. Such people don't deserve to be associated in any way to the CE/IT field..
"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.
![]() |
•
•
•
•
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
•
•
•
•
•
•
•
•
DaniWeb Computer Science and Software Design Marketplace
•
•
•
•
ajax asp blog business software computer dell design developer development erp systems experiment firefox howto india intel internet it java linux media microsoft mmorpg msdn networking news office open open-source operating programming project management rss science security software software selection source sql sun super system technology evaluation toread vista warez web wiki windows xp
- Tic-Tac-Toe (C++)
- help with homework (C)
Other Threads in the Computer Science and Software Design Forum
- Previous Thread: Do you agree or disagree with the following statement:
- Next Thread: MATLAB: displaying connection weights for ANN


Linear Mode