473,473 Members | 1,492 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

file and menu processes at C Helpp !!

Hi friends,I have a homework that should be done in five days,but I
couldn't it.If you have time and help me,I will be grateful to you.

Firstly,I want you to form a menu.
.....MENU.....
1)Total
2)Average
3)Matrix Formation

There will be two variable,named A and B.For each one of these
variable, there will be 'n' item observation number and asked
observation assets.The numbers will be registered in C:// and they
will be read from here.Then,when the users press 1 , they will get the
total such as ;

Total for A=
Total for B= ...

After that, we will send all data to x,named matrix.The dimension of
the matrix will be n*2.When the user press 3 , matrix will be seen.

Lastly, we will record all the processes at C:// in a different name..

Jun 7 '07 #1
9 1223
DeLiLlaH <nk*****@mynet.comwrites:
Hi friends,I have a homework that should be done in five days,but I
couldn't it.If you have time and help me,I will be grateful to you.
[...]

Ok, I'll help you.

Do your own homework. I suggest you start now. If you're having
trouble, ask your instructor (or teaching assistant, if you have one)
for help.

If you want help from this newsgroup, give it a try yourself. If
you've written your own code and you're having specific problems with
it, we can probably give you some limited help.

We may be willing to do your homework for you, but (a) we'll need to
discuss consulting rates, which are quite unreasonably high, and (b)
we'll ask you for your instructor's e-mail address so we can submit
our solutions directly.

--
Keith Thompson (The_Other_Keith) ks***@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"
Jun 7 '07 #2
In article <ln************@nuthaus.mib.org>,
Keith Thompson <ks***@mib.orgwrote:
>We may be willing to do your homework for you, but (a) we'll need to
discuss consulting rates, which are quite unreasonably high,
Oh, I don't know about that. *I* consider my homework consulting
rate of $US8417 per hour (3 hour minimum, paid in advance, excludes
expenses and travel) to be very reasonable considering the nature
of the work to be done.
--
Programming is what happens while you're busy making other plans.
Jun 7 '07 #3
DeLiLlaH wrote, On 07/06/07 20:23:
Hi friends,I have a homework that should be done in five days,but I
couldn't it.If you have time and help me,I will be grateful to you.
<snip>

At least you are being honest about it. However, if you get a job on the
basis of passing a course through cheating it might be one of us who
later has to clear up the mess you make, so don't expect people here to
do your homework for you. At least, not without paying enough to make it
worth our while! I'll do it for 1000000UKP cash in advance, since then I
can retire and not worry about the consequences.
--
Flash Gordon
Jun 7 '07 #4
"DeLiLlaH" wrote:
Hi friends,I have a homework that should be done in five days,but I
couldn't it.If you have time and help me,I will be grateful to you.

Firstly,I want you to form a menu.
....MENU.....
1)Total
2)Average
3)Matrix Formation

There will be two variable,named A and B.For each one of these
variable, there will be 'n' item observation number and asked
observation assets.The numbers will be registered in C:// and they
will be read from here.Then,when the users press 1 , they will get the
total such as ;

Total for A=
Total for B= ...

After that, we will send all data to x,named matrix.The dimension of
the matrix will be n*2.When the user press 3 , matrix will be seen.

Lastly, we will record all the processes at C:// in a different name..
I have read the problem statement several times, and even so, I may not
understand it. As I see it you use a text editor of your choice to create
two data files, one consisting of observations of kind A and the other for
observations of kind B. The two files have an identical number of samples,
n. The program you write starts by reading the two files into a matrix, a
fancy word in, this case, for a two-dimensional array- and from then on you
operate on that matrix. For a student problem I would think the instructor
would accept this simplistic declaration for the matrix.

int x[100][2];

Making that declaration looks like the hardest part of the exercise, knowing
whether to use [100][2] or [2][100]. When you write the output file, you
only write the actual number of elements used, of course. If the instructor
doesn't like the above, there are alternatives, such as reading one of the
files, simply counting entries to see how many observations there are and
then using malloc().

If I understand it, the rest of the exercise is too easy for anyone to be of
any assistance, short of writing the code. That wouldn't help you, would
it? Note that the average of a group of integers, is not, in general, an
integer.
Jun 8 '07 #5
My, my, my, Delilah,
Why, why, why, Delilah...

What is this "Helpp" you refer to? I assume all is OK with your homework.

eric.

Jun 8 '07 #6
okk okk ..

Allright then,How can I order all columns in matrix one By one ??

Jun 8 '07 #7
"DeLiLlaH" writes:
okk okk ..

Allright then,How can I order all columns in matrix one By one ??
I can not detect any meaning in that sentence. A 1x1 matrix would have only
one element. How can you establish an order with only one thing?
Jun 8 '07 #8

"osmium" <r1********@comcast.netha scritto nel messaggio
news:5c*************@mid.individual.net...
"DeLiLlaH" writes:
>okk okk ..

Allright then,How can I order all columns in matrix one By one ??

I can not detect any meaning in that sentence. A 1x1 matrix would have
only one element. How can you establish an order with only one thing?
typedef double one_by_one_matrix[1][1]
void sort(one_by_one_matrix m) { return; }
Jun 9 '07 #9
On Jun 8, 1:22 am, Keith Thompson <k...@mib.orgwrote:
DeLiLlaH <nkay...@mynet.comwrites:
Hi friends,I have a homework that should be done in five days,but I
couldn't it.If you have time and help me,I will be grateful to you.

[...]

Ok, I'll help you.

Do your own homework. I suggest you start now. If you're having
trouble, ask your instructor (or teaching assistant, if you have one)
for help.

If you want help from this newsgroup, give it a try yourself. If
you've written your own code and you're having specific problems with
it, we can probably give you some limited help.

We may be willing to do your homework for you, but (a) we'll need to
discuss consulting rates, which are quite unreasonably high, and (b)
we'll ask you for your instructor's e-mail address so we can submit
our solutions directly.

--
Keith Thompson (The_Other_Keith) k...@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
"We must do something. This is something. Therefore, we must do this."
-- Antony Jay and Jonathan Lynn, "Yes Minister"

I agree wholeheartedly.

Jun 10 '07 #10

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: KULJEET | last post by:
control file not created at time of installtion of oracle database now how we can create it see alert file Dump file e:\ORacle\admin\new\bdump\newALRT.LOG Tue Sep 09 10:45:53 2003 ORACLE...
1
by: cnu | last post by:
My program generates a log file for every event that happens in the program. So, I open the file and keep it open till the end. This is how I open the file for writing: <CODE> public...
13
by: Bob Darlington | last post by:
I have a repair and backup database routine which runs when a user closes down my application. It works fine in my development machine, but breaks on a client's at the following line: If...
5
by: Rookie | last post by:
If I have multiple processes (parent+1 or more child processes) that are reading a file at the same time (fopen("path.txt","r") - do I have to implement mutual exclusion requiring only one process...
2
by: Martin Carpella | last post by:
Hi! Can anybody give me a pointer if/how I could retrieve the Explorer context menu of a given file in C#? Thanks in advance, Martin
6
by: kumar_anil_gaya_India | last post by:
Hi All, I am facing one problem. I have one DLL called LogManagement which has ability to write to ExceptionLog and EventLog File. Both are separate file locate in Logs Diectory. I have two ...
2
by: Goran Djuranovic | last post by:
Hi all, I was getting this error when trying to move files on a FileSystemWatcher notification (with in a Windows Service). To fix this, I implemented a FileWaiter class to wait for the file to be...
16
by: Eran.Yasso | last post by:
Hi, I have a mdb file shared in the LAN. I want to write app that verifies if it's open. If the file is not open, then my app can open the file. if the file is used, then the app won't open it....
9
by: Anic297 | last post by:
Hello, I'm a newbie in php. I would like to show a popup menu on my website and update the page when the user has changed its selection. I have looked over the Internet but haven't found what I...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.