User Tools

Site Tools


opus:spring2012:jhammo13:hpc0part3

hpc0 Keywords

Spectrum

Definition

The range of frequencies that a wave contains.

Audio Signals

Definition

These are analog waves that range in frequencies. Their range is 20Hz-20kHz and somesones speech range is from 100Hz-7kHz.

Prototype

Definition

This is a form of fcuntion that specify's the function return type.

Demonstration

int myfunction(int x)

Conditional if

Definition

This is a keyword used in C++ programming to test a boolean condition of true or false.

Demonstration

#include<iostream>
using namespace std;

int main()
{
     if (6 > 3)
     {
         cout<<"6 is greater than 3";
     }

return 0;
}

if-else statement

Definition

The later of the two above keywords can be used if the former of the two is found to be a false statement. The later gives the program somewhere to go if it is false.

Demonstration

include <iostream>
#include <iomanip>
#include <fstream>


using  namespace std;

int main()
!=0) && (y==0))
		cout<<"("<<x<<","<<y<<")  is on the x-axis"<<endl;
	                			
	else if ((x>0) && (y>0))
                cout<<"("<<x<<","<<y<<")  is in quadrant 1"<<endl;

	else if ((x<0) && (y>0))
                cout<<"("<<x<<","<<y<<")  is in quadrant 2"<<endl;

	else if ((x<0) && (y<0))
                cout<<"("<<x<<","<<y<<")  is in quadrant 3"<<endl;

	else if ((x>0) && (y<0))
                cout<<"("<<x<<","<<y<<")  is in quadrant 4"<<endl;
	else
		cout<<"Invalid"<<endl;
	return 0;
}

For loop

Definition

A set up in c++ that involves an integer being incremented and a line of code being continually processed until the incrementation reaches a certain number. Most comonly until it has been processed a certain number of times.

Demonstration

#include<iostream>
using namespace std;

int main()
{
   int x;
   
   for (x = 0; x < 3; x++;)
   {
        cout<<"meow"<<endl;
   }
 return 0;  
}

this will display the word meow two times because the program processes the line of code that prints meow two times

hpc0 Keyword 23

Identification of chosen keyword (unless you update the section heading above).

Definition

Definition (in your own words) of the chosen keyword.

Demonstration

Demonstration of the chosen keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

hpc0 Keyword 24

Identification of chosen keyword (unless you update the section heading above).

Definition

Definition (in your own words) of the chosen keyword.

Demonstration

Demonstration of the chosen keyword.

If you wish to aid your definition with a code sample, you can do so by using a wiki code block, an example follows:

/*
 * Sample code block
 */
#include <stdio.h>
 
int main()
{
    return(0);
}

Alternatively (or additionally), if you want to demonstrate something on the command-line, you can do so as follows:

lab46:~$ cd src
lab46:~/src$ gcc -o hello hello.c
lab46:~/src$ ./hello
Hello, World!
lab46:~/src$ 

hpc0 Objective

hpc0 Objective

State the course objective

Definition

In your own words, define what that objective entails.

Method

State the method you will use for measuring successful academic/intellectual achievement of this objective.

Measurement

Follow your method and obtain a measurement. Document the results here.

Analysis

Reflect upon your results of the measurement to ascertain your achievement of the particular course objective.

  • How did you do?
  • Is there room for improvement?
  • Could the measurement process be enhanced to be more effective?
  • Do you think this enhancement would be efficient to employ?
  • Could the course objective be altered to be more applicable? How would you alter it?
opus/spring2012/jhammo13/hpc0part3.txt · Last modified: 2012/05/01 11:34 by jhammo13