Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 12-17-2004, 10:46 AM   #1 (permalink)
Rio
Registered User
 
Join Date: Dec 2004
Posts: 3
Rio is on a distinguished road
Question Help me out Emergency!!

Hi,
I have 3 small C++ projects left that I have to do and I don’t have any idea of how to do them . They are all due tomorrow (Saturday). According to my teacher each is supposed to take a max of 20 min to do. I was wondering if anyone is willing to do it for me. If you are interested please let me know, I am ready to pay for it thru pay pal. Please let me know ASAP, like I said its due tomorrow.

Please email me if you have any questions or write it here
Thank you

Rio.E

rezaedalat@yahoo.com
Rio is offline   Reply With Quote
Old 12-17-2004, 11:22 AM   #2 (permalink)
Rio
Registered User
 
Join Date: Dec 2004
Posts: 3
Rio is on a distinguished road
Here is the first 1st problem:

Assiggnment: Plan and code a modular program utilizing arrays; use at least three functions to solve the problem.

Problem: A File contains an even number of integers, 2 integer per record. Input the first number of each record into one array. Input the second number of each record into a second array.
Multiply the first element of each arrays and store the product in the third array. Multiply the remaining elements of the first two arrays, storing the product in the third array.

Input: Input a set of numbers. Use input from a textfile

Output: Label and output all three arrays.

Thank you very much
Rio is offline   Reply With Quote
Old 12-17-2004, 01:04 PM   #3 (permalink)
Kernel_Killer
Regular Contributor
 
Kernel_Killer's Avatar
 
Join Date: Feb 2003
Location: indisclosed
Posts: 210
Kernel_Killer is on a distinguished road
Start working on it, then post what you have and the trouble you are having. We are willing to help with specific questions, but we are not the people who are going to do your homework. That's part of the learning process with C++. You learn how to do pseudo-code and how to make prototypes in your head. You'll get it, but you will have to start cracking hardcore very soon.
__________________
Network Synapse
Screaming Electron
Kernel_Killer is offline   Reply With Quote
Old 12-17-2004, 01:37 PM   #4 (permalink)
Rio
Registered User
 
Join Date: Dec 2004
Posts: 3
Rio is on a distinguished road
ok tell me do you find the problem i posted hard?

and

How do i start give me some clues

Thank you
Rio is offline   Reply With Quote
Old 12-17-2004, 02:01 PM   #5 (permalink)
Valmont
[code][/code] enforcer
 
Valmont's Avatar
 
Join Date: Mar 2003
Location: Netherlands
Posts: 1,544
Valmont is on a distinguished road
1) Setup the required model in a file. Let's take a simple text file "IntPairs.txt".
Code:
1	5
3	2
43	98
200	7
7	980
90	99
2) Create your three arrays.
3a) Open the text file for reading. Read each record, storing the first element of the record in the first array. Store the second element of the record in the second array.
3b) Do this in a loop until there are no more records to be read.
4) Do the math things. Store it in the third array.
5) Do the output things.
__________________
Valmont is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
EMERGENCY: Dynamic form processing DavH27 PHP 8 10-27-2004 08:52 PM


All times are GMT -8. The time now is 06:24 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting