[Show all top banners]

celtics
Replies to this thread:

More by celtics
What people are reading
Subscribers
:: Subscribe
Back to: Kurakani General Refresh page to view new replies
 assignment
[VIEWED 3482 TIMES]
SAVE! for ease of future access.
Posted on 12-17-10 1:29 PM     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Need help with c++ program assignment. Help please ASAP. Tried alot couldn't finish.
 
Posted on 12-20-10 4:02 PM     [Snapshot: 129]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

Hi


  Sajha is the best blog to post and bring all nepalease together. Lets make it a useful blog not rubbish.


 
Posted on 12-20-10 4:09 PM     [Snapshot: 138]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

not make it rubbish? what happened celtics?

If you need help, post  your code. If user here find you really tried hard , then help is certain. Post your question and your solution so that you get some guidelines. 

 
Posted on 12-20-10 4:13 PM     [Snapshot: 143]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

guys help ASAP



This assignment is a continuation of standard deviation assignments and will be an add-on operation to your previous working code to manipulate raw data. The menu program previously created will be expanded to include an additional option (should be 4 all together now) to use dynamically allocated arrays to manipulate data . The new option will be entirely contained in a new separate function of your own design that will include all of the necessary declarations and operations for the assignment.


The function you create will need to declare one or more pointer variables of a new class data type of your own design that will store and manage an x, y coordinate pair and a third value for time, all floating point values. Your class declaration should have a set method that passes the three values into an instance of the variable and a get method to obtain each of the values as a base data type for computation. 


In your new assignment function dynamically allocate enough element space for 25 entries of starting and ending data to compute a unit vector based on Cartesian coordinate values. In the file the first set of three values represent the start position and time of measurement and the second set of three values represent the end position and time of the event. Each numeric value will be separated by white space in the source data file. Your code should be able to read and store up to 25 pairs of data and no more. The source data files contain any number of values but only 25 are to be processed. 


The new class data type should be a modification from the struct declaration used in assignment 1 but using a class declaration and methods to access the base data type values stored. The functions used for computation should pass copies or references to values of your new data type as one or more parameters and compute distance, direction and speed appropriately.


Your main program function should contain only the menu operations and selection operations to execute the operations for this and the previous assignments (or to exit). The program should be able to perform any of the three assigned operations by selecting the appropriate menu option without restarting the program.


Use the source data file RAW_DATA.TXT from assignment 1 and name the output data file the program creates as PROCESSED_ARRAY.TXT.  Data written to file should be the numerical data (x, y, time) for the starting and ending data points and then the direction and speed separated by whitespace. Data written to the video screen should consist of simple headings indicating what the data represents and aligned for easy reading and proper presentation.


Run your completed project exercising the option for this assignment and take a screen shot of the output. Submit your C++ code file (named appropriately with your LAST NAME-HW3 as the first part of the filename) by the due date through the online submission point. 


See the additional material on the next page regarding standard formula for conversion of raw data to the vector quantities.


Since the data represents a vector, use the formula supplied below as necessary, to compute the direction (angle) of movement and the speed (distance divided by the elapsed time) and write the original data coordinates, the computed distance, elapsed time, speed and direction to the display and to the output file. The input positional data is a measure in meters and time is measured in seconds.


 ______________________________


Distance =  (| X2 – X1|2 + |Y2 – Y1|2)


Direction = Arctangent((Y2 – Y1) / (X2 – X1))


Speed = Distance / (|T2 – T1|)


 
Posted on 12-20-10 11:55 PM     [Snapshot: 199]     Reply [Subscribe]
Login in to Rate this Post:     0       ?    
 

not for rubbish eh? When was the last time u helped somebody in sajha? I have never seen anybody who post asking for help, help somebody else here. So chill and summarize ur question, too much to read.
 


Please Log in! to be able to reply! If you don't have a login, please register here.

YOU CAN ALSO



IN ORDER TO POST!




Within last 30 days
Recommended Popular Threads Controvertial Threads
What are your first memories of when Nepal Television Began?
nrn citizenship
Travelling to Nepal - TPS AP- PASSPORT
काेराेना सङ्क्रमणबाट बच्न Immunity बढाउन के के खाने ?How to increase immunity against COVID - 19?
TPS Work Permit/How long your took?
मन भित्र को पत्रै पत्र!
Informatica consultancy share
Travelling on TPS advance travel document to different country...
Are you ready to know the truth?
Thank you for the sajha policy
Nepali doctors future black or white usa ?
चितवनको होस्टलमा १३ वर्षीया शालिन पोखरेल झुण्डिएको अवस्था - बलात्कार पछि हत्याको शंका - होस्टेलहरु असुरक्षित
महँगो अण्डाको पिकल्प : कुखुरा र खोर भाडामा लिने
Does the 180 day auto extension apply for TPS?
TPS Renewal Reregistration
Why is every youths leaving Nepal? Why are not youths entering politics and serving the country, starting business etc?
Is money sent to support family tax deductible?
Send Parcels from USA to Nepal & Worldwide.
Another Song Playing In My Mind
हेर अमेरिकामा नेपालीहरुको बेज्जत
NOTE: The opinions here represent the opinions of the individual posters, and not of Sajha.com. It is not possible for sajha.com to monitor all the postings, since sajha.com merely seeks to provide a cyber location for discussing ideas and concerns related to Nepal and the Nepalis. Please send an email to admin@sajha.com using a valid email address if you want any posting to be considered for deletion. Your request will be handled on a one to one basis. Sajha.com is a service please don't abuse it. - Thanks.

Sajha.com Privacy Policy

Like us in Facebook!

↑ Back to Top
free counters