## Homework 5, due October 14, 2010.

Due Thursday, October 14, 2010.
goodwine
Posts: 1596
Joined: Tue Aug 24, 2004 4:54 pm
Location: 376 Fitzpatrick
Contact:

### Homework 5, due October 14, 2010.

Individual Problem: Complete the midterm exam from the last time I taught this course. Unlike what the old exam says, both questions are required and are worth the same amount of credit.
Bill Goodwine, 376 Fitzpatrick
alaneve

### Re: Homework 5, due October 14, 2010.

Hey Professor,
I've become a fan of the gedit editor and was wondering if there was any way to use it while connected remotely? I know it always opens a new window when you start gedit, but I can't figure out how to tell it not to open a the window. Any help would be great. Thanks.
goodwine
Posts: 1596
Joined: Tue Aug 24, 2004 4:54 pm
Location: 376 Fitzpatrick
Contact:

### Re: Homework 5, due October 14, 2010.

alaneve wrote:Hey Professor,
I've become a fan of the gedit editor and was wondering if there was any way to use it while connected remotely? I know it always opens a new window when you start gedit, but I can't figure out how to tell it not to open a the window. Any help would be great. Thanks.
I don't know, but if you type 'man gedit' that will give the manual page for it, which may give an answer. A much more cumbersome approach, but if you get it working it's great, is to install an X-windows emulator on your computer. Assuming it's Windows, the program is called XWin32 (I think).
Bill Goodwine, 376 Fitzpatrick
phandy

### Re: Homework 5, due October 14, 2010.

hi professor,
in the problem where it says f (x) = x**3 *cos(x) β 1
is the cos(x) supposed to be calculated in degrees or radians?
goodwine
Posts: 1596
Joined: Tue Aug 24, 2004 4:54 pm
Location: 376 Fitzpatrick
Contact:

### Re: Homework 5, due October 14, 2010.

phandy wrote:hi professor,
in the problem where it says f (x) = x**3 *cos(x) β 1
is the cos(x) supposed to be calculated in degrees or radians?
Either is fine. Radians is easier, I guess.
Bill Goodwine, 376 Fitzpatrick
ryip

### Re: Homework 5, due October 14, 2010.

Professor:

Do we just upload the code or is there any write-up for the homework?
wandor

### Re: Homework 5, due October 14, 2010.

Do we need two separate programs or should we incorporate the second part into the first part?
goodwine
Posts: 1596
Joined: Tue Aug 24, 2004 4:54 pm
Location: 376 Fitzpatrick
Contact:

### Re: Homework 5, due October 14, 2010.

ryip wrote:Professor:

Do we just upload the code or is there any write-up for the homework?
Print the program and also fill in the box.
Bill Goodwine, 376 Fitzpatrick
goodwine
Posts: 1596
Joined: Tue Aug 24, 2004 4:54 pm
Location: 376 Fitzpatrick
Contact:

### Re: Homework 5, due October 14, 2010.

wandor wrote:Do we need two separate programs or should we incorporate the second part into the first part?
One is fine as long as the grader can easily tell what was added to make the second program.
Bill Goodwine, 376 Fitzpatrick
dstrombe

### Re: Homework 5, due October 14, 2010.

Hi Professor,
Is there a way to use a variable in a format statement, so the number of digits precision can be altered? I tried to incorporate this a few different ways but kept getting errors when trying to compile.
goodwine
Posts: 1596
Joined: Tue Aug 24, 2004 4:54 pm
Location: 376 Fitzpatrick
Contact:

### Re: Homework 5, due October 14, 2010.

dstrombe wrote:Hi Professor,
Is there a way to use a variable in a format statement, so the number of digits precision can be altered? I tried to incorporate this a few different ways but kept getting errors when trying to compile.
Unfortunately there isn't. You need to make several (don't go crazy, just do 3 to 5) different formats and pick the right one based on what the user enters.
Bill Goodwine, 376 Fitzpatrick
joneill5

### Re: Homework 5, due October 14, 2010.

How do we reopen a program we've already started?
goodwine