Macintosh, iPhone, and iPad Programming

Mac, iPhone, and iPad Programming

On 06/19/2012, NR Computer Learning Center (NRCLC) introduced a new high-quality, noncredit online course: Macintosh, iPhone, and iPad Programming.

NRCLC offer hundreds of online, instructor-led courses and is pleased to announce the launch of “Macintosh, iPhone, and iPad Programming.”

Participants in this course will learn to create Macintosh, iPhone, and iPad apps and programs using Objective-C and the Xcode compiler. Along the way, they’ll explore examples and perform simple coding exercises to build their confidence using Xcode and Objective-C.

This course is part of NRCLC’s growing catalog of more than 300 instructor-facilitated online courses. Through well-crafted lessons, expert online instruction, and interaction with fellow students, participants in these courses gain valuable knowledge at their convenience.

Students have the flexibility to study at their own pace combined with enough structure and support to complete the course. And they can access the classroom 24/7 from anywhere with an Internet connection.

New sessions of each course run every month. They last six weeks, with two new lessons being released weekly (for a total of 12). The courses are entirely Web-based with comprehensive lessons, quizzes, and assignments. A dedicated professional instructor facilitates every course; pacing learners, answering questions, giving feedback, and facilitating discussions.

To learn more, call NRCLC at (714) 505-3475 or visit them online at http://www.nrclc.com/.

Contact:
NR Computer Learning Center
2100 W.Orangewood, Suite 110
Orange, CA
92868
http://www.nrclc.com/
714-505-3475

, , , ,

Leave a Comment

How to install Microsoft Visual C++ Express 2010

How to install Visual C++ Express

1. Go to http://www.microsoft.com/visualstudio/en-us

2. Under the PRODUCTS submenu, click the link for Visual C++ Express

3. In the box on the right side of the page, choose your preferred language and then click INSTALL NOW

4. If the VISUAL STUDIO BETA message pops up, just click the “Visual C++ 2010 Express (English) >” button

5. A dialog box should appear asking for the file to be saved, ran or canceled. Saving will make the download faster than running, but creates a copy of the file on your computer.

6. Once the download is complete, Windows will ask you if you want to run the software. Hit yes. If it doesn’t ask, find the file in the default download folder and run the program.

7. Once the setup finishes extracting and loading the files, the setup will begin.

8. Check or uncheck your preferences. Microsoft SQL Server 2008 Express Service Pack 1 is not a necessary component of Microsoft Visual C++ 2010 express.

9. The setup will now download and install all the necessary compenents for Microsoft Visual C++ 2010 Express

, , ,

1 Comment

How to Read and Write Text files using C++

This program performs the following operations:
• Takes the name and three test scores for four students as an input to the program
• Finds the average of the tests of the students
• Saves the score information for each of the student in an array of structures
• Writes the information in the structure to a text file called students.dat.
• Sorts the array of structures by average, largest to smallest, using bubble sort
• Saves the data again to a file in the sorted order in the same text file, students.dat
• Prints the information of each of the students on to the screen
• Program then counts the number of students who passed and failed, governed by the 70 point mark
• Prints the number of students who failed and passed the exam.

A flowchart for this program is included at the bottom of the page.

#include
#include
#include
using namespace std;

//creates the structure Student
struct Student
{
char name[20];
int test1, test2, test3;
float avg;
};

//asks the user to input the necessary data through the keyboard
void load(struct Student s[4])
{
int i;
for (i = 0; i < 4; i++)
{
cout << “enter a full name ” << endl;
cin.getline(s[i].name, 20);
cout << “enter 3 test scores ” << endl; cin >> s[i].test1 >> s[i].test2 >> s[i].test3;
s[i].avg = (s[i].test1 + s[i].test2 + s[i].test3) / (float) 3;
//clears buffer
cin.ignore(20, ‘\n’);
cout << endl;
}
}
/********************************************************************
* saveFile module will create or replace a text file at C:\\students.dat
* and then write the struct variable data in it. The format will be
* Name
* test1 test2 test3 avg
* Name
* test1 test2 test3 avg
* etc.
*********************************************************************/
void saveFile(struct Student s[4])
{
int i;
ofstream outfile(“c:\\students.dat”, ios::out);
//creates or replaces the file at C:\\students.dat
for (i = 0; i < 4; i++)
{
outfile << s[i].name << endl;
outfile << s[i].test1 << ‘ ‘ << s[i].test2 << ‘ ‘<< s[i].test3 << ‘ ‘ << s[i].avg << endl;
}
outfile.close(); //closes the file
}

/**************************************************************************
retrieveFile isn’t used, but this would be the code for getting the information back out of the students.dat file and putting it into the structs.
***************************************************************************/
/*void retrieveFile(struct Student s[4])
{
int i;
ifstream infile(“c:\\students.dat”, ios::in);
//opens the file located at C:\\students.dat
for (i = 0; i < 4; i++) { infile.getline(s[i].name, 20); infile >> s[i].test1 >> s[i].test2 >> s[i].test3 >> s[i].avg;
infile.ignore(20, ‘\n’);
//clears the buffer
}
infile.close();
//closes the file
}
*/
/**************************************************************************
//prints the data in this format:
//Name
//the scores are test1 test2 test3
//the average is avg
***************************************************************************/
void print(struct Student s[4])
{
int i;
for (i = 0; i < 4; i++)
{
cout << s[i].name << endl;
cout << “the scores are ” << s[i].test1 << ‘ ‘ << s[i].test2 << ‘ ‘<< s[i].test3 << endl;
cout << “the average is ” << s[i].avg << endl << endl;
}
cout << “printing complete” << endl << endl;
}
/*************************************************************************
//sorts the data by average, uses bubble sort
**************************************************************************/
void sort(struct Student s[4])
{
int i;
int x;
bool swap2;
//used to check if no swaps occurred
for(x = 0; x < 4; x++)
{
swap2 = false;
//resets the swap boolean to false after every pass
for(i = 0; i < 3; i++)
{
if(s[i].avg < s[i+1].avg)
{
swap(s[i],s[i+1]);
swap2 = true;
//swap stems from the header
//since a swap occurred, it’s possible more
//swaps may be necessary, so the Boolean is
//set to true
}
}
if (!swap2)
{
break;
}
}
}
/*************************************************************************
checks the average of every student and determines if they passed (>=70) or failed ( *************************************************************************/
void grade(struct Student s[4])
{
int p = 0;
//pass counter
int f = 0;
//fail counter
int i;
for(i = 0; i < 4; i++) { if(s[i].avg >= 70)
//checks if the average is equal to or greater than 70
{
p++;
cin.ignore(20, ‘\n’);
}
else
{
//if its not greater than or equal to 70, the only remaining option is
//for it to be less than 70 f++;
cin.ignore(20, ‘\n’);
}
}
cout << “The number of passes are: ” << p << endl;
cout << “The number of fails are: ” << f << endl;
}

/**************************************************************************
//runs all of the functions
*************************************************************************/
int main()
{
Student s[4];
load(s);
saveFile(s);
print(s);
sort(s);
saveFile(s);
print(s);
grade(s);
system(“PAUSE”);
//causes the command prompt to ask for any key before continuing. //used in this case to stop the command prompt from closing instantly.
return 0;
}

———————————————————————————————————

OUTPUT:

enter a full name
John
enter 3 test scores
50 60 70

enter a full name
Bobby
enter 3 test scores
80 80 80

enter a full name
Kelly
enter 3 test scores
20 30 40

enter a full name
Jennifer
enter 3 test scores
60 7 80

John
the scores are 50 60 70
the average is 60

Bobby
the scores are 80 80 80
the average is 80

Kelly
the scores are 20 30 40
the average is 30

Jennifer
the scores are 60 7 80
the average is 49

printing complete

Bobby
the scores are 80 80 80
the average is 80

John
the scores are 50 60 70
the average is 60

Jennifer
the scores are 60 7 80
the average is 49

Kelly
the scores are 20 30 40
the average is 30

printing complete

The number of passes are: 1
The number of fails are: 3
Press any key to continue . . .

C++ Flowchart

NR Computer Learning Center
(714)-505-3476
2100 W. Orangewood, Suite 110
Orange, CA 92868
www.nrclc.com

, ,

Leave a Comment

What is HTML5?

HTML, or Hyper Text Markup Language, is a tag based formatting language used to develop a web page. HTML was first intoduced to public in 1990 and HTML4 was standardized in 1997. HTML5 is the latest version of Hypertext Markup Language.

Even though the specification for HTML5 isn’t finalized yet, (W3C is expected to finalize the specification for HTML5 standards by 2014) all major browser manufacturers are making sure their browser is ready for the future.  According to Strategy Analytics forecast report, the global HTML5 phone sales is expected to grow 100% in 2012, making it one of the industry’s fastest growing sub-categories.

Following is a video on What is HTML5?

To test, how well your broswer support HTML5 standard, go to the website http://www.html5test.com/. The website will list all the HTML5 features that is supported by your browser.

References
1. http://en.wikipedia.org/wiki/HTML5
2. http://www.html5test.com
3. http://www.strategyanalytics.com/default.aspx?mod=reportabstractviewer&a0=6853

NR Computer Learning Center
2100 W. Orangewood, Suite 110
Orange, CA 92868
www.nrclc.com

, ,

1 Comment

Follow

Get every new post delivered to your Inbox.

%d bloggers like this: