Click here to Skip to main content
15,905,679 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralTemplate overriding of operator [] Pin
Alexandru Savescu20-Apr-03 21:20
Alexandru Savescu20-Apr-03 21:20 
GeneralRe: Template overriding of operator [] Pin
Joaquín M López Muñoz20-Apr-03 21:51
Joaquín M López Muñoz20-Apr-03 21:51 
GeneralTiming problem in run-time loading DLL Pin
pklim20-Apr-03 20:17
pklim20-Apr-03 20:17 
QuestionCListCtrl: AutoArrage & Ascending Sort? Pin
Bùi Phạm Minh Trí20-Apr-03 16:56
Bùi Phạm Minh Trí20-Apr-03 16:56 
GeneralQuestion about a edit box! Help! Pin
dxhdxh20-Apr-03 14:09
dxhdxh20-Apr-03 14:09 
GeneralRe: Question about a edit box! Help! Pin
Nick Parker20-Apr-03 16:57
protectorNick Parker20-Apr-03 16:57 
GeneralRe: Question about a edit box! Help! Pin
DuFF21-Apr-03 7:08
DuFF21-Apr-03 7:08 
GeneralI need help with MATLAB questions Pin
nxz420-Apr-03 11:17
nxz420-Apr-03 11:17 
QUESTION 1: We are convinced that those students who do well on quizzes will do well in the class. Therefore, we want to compute a final average that is limited to those students who did well on the quizzes. Suppose there is a file named grades.txt in the current directory containing grades for all of the students in ECE 1331. Each line in the file has 9 values, separated by spaces: the first 8 values are the quiz grades for a student, while the 9th value is that same student's final grade in the class. There is one line in the file for each student. Give the MATLAB commands you could put in a script file to read in the file and then compute and display, properly labeled, the average of the final grades made by only those students who had a grade of 85 or more on at least 6 of the 8 quizzes. For example, if only 30 of the students made 85 or more on at least 6 of the 8 quizzes, then you would compute the average of the final grades of just those 30 students and display it. Remember to use loops and not array operations! .


QUESTION 2: Write the Matlab code segment that uses a while loop to determine how long it will take to accumulate $1,000,000 in a bank account if you deposit $5,000 initially and $5,000 at the end of each year; the account pays 8 percent annual interest. The annuity formula is given as follows:

FV = PMT(1+i){(((1+i)^N)-1)/i}

where FV is the final value, PMT is the payment amount you add every period, i is the interest rate in percent per period, and N is the number of periods.

Your code should output the result to the command window. Label which parts of your code are:

pre-loop initialization
loop control
loop body
post-loop cleanup

GeneralRe: I need help with MATLAB questions Pin
Nick Parker20-Apr-03 16:51
protectorNick Parker20-Apr-03 16:51 
GeneralRe: I need help with MATLAB questions Pin
Anonymous20-Apr-03 21:52
Anonymous20-Apr-03 21:52 
GeneralRe: I need help with MATLAB questions Pin
Toni7821-Apr-03 11:58
Toni7821-Apr-03 11:58 
GeneralUsing the serial com port Pin
Q15002220-Apr-03 10:05
Q15002220-Apr-03 10:05 
GeneralRe: Using the serial com port Pin
anju20-Apr-03 17:38
anju20-Apr-03 17:38 
GeneralRe: Using the serial com port Pin
Toni7821-Apr-03 11:53
Toni7821-Apr-03 11:53 
GeneralWorker-Thread In Win32 Application Pin
ZarrinPour20-Apr-03 5:27
ZarrinPour20-Apr-03 5:27 
GeneralRe: Worker-Thread In Win32 Application Pin
Ravi Bhavnani20-Apr-03 6:34
professionalRavi Bhavnani20-Apr-03 6:34 
GeneralRe: Worker-Thread In Win32 Application Pin
Johann Gerell20-Apr-03 6:48
Johann Gerell20-Apr-03 6:48 
GeneralRe: Worker-Thread In Win32 Application Pin
Ravi Bhavnani20-Apr-03 12:09
professionalRavi Bhavnani20-Apr-03 12:09 
GeneralAdding controls to a ListView based app Pin
TelMonks20-Apr-03 4:01
TelMonks20-Apr-03 4:01 
GeneralRe: Adding controls to a ListView based app Pin
Ravi Bhavnani20-Apr-03 6:35
professionalRavi Bhavnani20-Apr-03 6:35 
GeneralRe: Adding controls to a ListView based app Pin
TelMonks20-Apr-03 7:59
TelMonks20-Apr-03 7:59 
GeneralMeeting troubles when reading two integers from a file. Pin
George220-Apr-03 2:41
George220-Apr-03 2:41 
GeneralRe: Meeting troubles when reading two integers from a file. Pin
Nick Parker20-Apr-03 3:15
protectorNick Parker20-Apr-03 3:15 
GeneralRe: Meeting troubles when reading two integers from a file. Pin
George220-Apr-03 3:23
George220-Apr-03 3:23 
QuestionHow to let vector store reference? Pin
George220-Apr-03 2:31
George220-Apr-03 2:31 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.