Skip to main content

Posts

Showing posts from July, 2016

C Programming: Guess The Number

------------------------------------------------------------------------- Note:- This game is tested on on CodeBlocks IDE and DevC++ IDE on Windows OS. To run this game , use of CodeBlocks IDE or DevC++ IDE (on Windows OS) is recommended. Using other IDE might generate errors. (Windows OS is necessary, running Game on other OS might not work) --------------------------------------------------------------------------    #include <stdio.h> #include <stdlib.h> #include <time.h> int main(void) {     srand(time(NULL));     int r = rand() % 10 + 1;     int correct = 0;     int guess;     int counter = 0;     printf("Guess my number! ");     do {         scanf("%d", &guess);         if (guess == r) {             counter++;             printf("You guessed correctly in %d tries! Congratulations!\n", counter);             correct = 1;         }         if (guess < r) {             counter++;             printf(&quo

C Programming: Hangman

------------------------------------------------------------------------- Note:- This game is tested on on CodeBlocks IDE and DevC++ IDE on Windows OS. To run this game , use of CodeBlocks IDE or DevC++ IDE (on Windows OS) is recommended. Using other IDE might generate errors. (Windows OS is necessary, running Game on other OS might not work) --------------------------------------------------------------------------        ----------------------------------------------------------------------------- Hangman game needs 'words.txt' file to run. You need to make a new file 'words.txt' in root folder using Text Editor and copy the following text (line) in it.            The text (line) is written below:- abbey|abruptly|affix|askew|axiom|azure|bagpipes|bandwagon|banjo|bayou|bikini|blitz|bookworm|boxcar|boxful|buckaroo|buffalo|buffoon|cobweb|croquet|daiquiri|disavow|duplex|dwarves|equip|exodus Note:- You can write your own words in 'words.txt' file w

C-Programming:Minesweeper

------------------------------------------------------------------------- Note:- This game is tested on on CodeBlocks IDE and DevC++ IDE on Windows OS. To run this game , use of CodeBlocks IDE or DevC++ IDE (on Windows OS) is recommended. Using other IDE might generate errors. (Windows OS is necessary, running Game on other OS might not work) --------------------------------------------------------------------------    #include<stdio.h>  #include<stdlib.h>                                       void welcome(); void rand_mines(char msweep[12][12]); void printmatrix(char msweep[12][12],int r,char user_chart[12][12]); int process(char msweep[12][12],int r,int c,char user_chart[12][12]); int main() {                    // size of array is 10,array starts from 1 to 11 char msweep[12][12] = {{'0'}};      int i,r,c;   char user_chart[12][12] = {{'0'}};     rand_mines(msweep);      printf("Enter your location(ONLY 1 - 11) on the minefiel

C Programming : Tic Tac Toe

------------------------------------------------------------------------- Note:- This game is tested on on CodeBlocks IDE and DevC++ IDE on Windows OS. To run this game , use of CodeBlocks IDE or DevC++ IDE (on Windows OS) is recommended. Using other IDE might generate errors. (Windows OS is necessary, running Game on other OS might not work) --------------------------------------------------------------------------        #include<stdio.h> #include<conio.h> void Board(); void PlayerX(); void PlayerO(); void Player_win(); void check(); int win=0,wrong_X=0,wrong_O=0,chk=0; char name_X[30]; char name_O[30]; int pos_for_X[3][3]; int pos_for_O[3][3]; int pos_marked[3][3]; int main() { int i,ch,j; char ans; do { printf("\n\t\t\t\tTIC TAC TOE"); printf("\n\t\t\t\t"); for(i=1;i<=11;i++) { printf("*"); } printf("\n1.Start The Game"); printf("\n2.Quit The Game"); printf(&qu

C-Programming: Snake Game

------------------------------------------------------------------------- Note:- This game is tested on on CodeBlocks IDE and DevC++ IDE on Windows OS. To run this game , use of CodeBlocks IDE or DevC++ IDE (on Windows OS) is recommended. Using other IDE might generate errors. (Windows OS is necessary, running Game on other OS might not work) --------------------------------------------------------------------------  #include <stdio.h> #include <time.h> #include <stdlib.h> #include <conio.h> #include<time.h> #include<ctype.h> #include <time.h> #include <windows.h> #include <process.h> #define UP 72 #define DOWN 80 #define LEFT 75 #define RIGHT 77 int length; int bend_no; int len; char key; void record(); void load(); int life; void Delay(long double); void Move(); void Food(); int Score(); void Print(); void gotoxy(int x, int y); void GotoXY(int x,int y); void Bend(); void Boarder(); void Down();

What is the difference studying Computer Engineering and CSIT course ?

When it comes to choosing a course for who is interested in computers there are two most famous courses students find in Nepal. Both courses mostly offered by Tribhuwan university are perfect fit for someone who wants to learn about computers or expects to have a career in computers and technology. Both courses are significantly well designed and are great for people with their specific needs. In this article,  I am going to briefly talk about which course to go with depending on your interests. If you don’t like the idea of reading the whole article there is a short video at the end that can be a good substitute. If I were you and choosing a course for my future, I would read whole article. Computer Engineering: Simply computer engineering is a discipline that integrates several fields of computer science and electronics.Which means generally a Computer Engineer needs to have knowledge of physical components of computer and software needed to drive those components. As a whole com

CSIT vs. Computer Engineering, in Nepal

CSIT vs. Computer Engineering, in Nepal Are you a Nepali student and have just completed your +2 or A-levels? Are you stuck between CSIT and computer engineering? Are you banging your head against the wall trying to decide which one to go for? Fear not, dear reader, for in this article, I attempt to weigh both sides in order to help you make the correct decision. So, keep reading! Firstly: What you have to understand is that the debate between CSIT and computer engineering is not resolved overwhelmingly to either side. Each of them has its own pros and cons. I’ll try to list these out for you, and you can make an informed decision on your own. Computer Engineering: Pros: You get to call yourself an engineer once you get your degree. It’s a more reputed degree, which means better job opportunities. The government puts a lot more money into computer engineering than into CSIT. So, there’s a clear path to a full or partial scholarship. You get to study with extremely intelligen

Difference between BScCSIT and Computer Engineering

Difference between BScCSIT and Computer Engineering Posted on July 14, 2015 Main Difference between BScCSIT and Computer Engineering BScCSIT Computer Engineering BScCSIT is not just Information Technology it Contains contents of Computer Science too.In BScCSIT 126 credit hours comes from 75 credit hours of core Computer Science, 15 credit hours of electives, 12 credit hours of Natural Science, 6 credit hours of Management, 6 credit hours of math, 3 credit hours of Technical Writing and 9 credit hours form Project and Internship.BScCSIT is not so different than Computer Engineering. St. Xavier’s college provide physics in BScCSIT which will make student understand hardware part of computing. Statistics, Calculus and Analytical Geometry, Digital Logic, microprocessor, Data Structure and Algorithm, etc are present in BScCSIT as Computer Engineering. In Summary, BScCSIT is easier than Computer Engineering because of less load on Numerical Problems and Mathematics but BscCSIT Contains

Why BSc CSIT?

Why BSc.CSIT? I was invited in some of the interaction program for encouraging student in BSc. CSIT, I saw most of students were confused with lot of advertisement of subject in newspaper and other media. Showing the syllabus and content doesn’t make big deal them cause most of them can’t understand it in details.  I usually tried to cover lot while speaking about BSc CSIT, but may be missed unknowingly or may not that orientation and interaction program don’t cover all the interested students all over of Nation. So I think it will better to write some point on Why BSc. CSIT? First remember I am not going to engrave why not BE, BCA, BIT, BCIS,  BSc IT. BSc CSIT is not just an IT(Information Technology)  it is append with CS(Computer Science), we don’t like to pronounce IT, Computer science is not the same as IT, We focus on principles and technology, not how to use computer applications in CS. BSc CSIT cover minimum 126 credit hours, remember minimum, because we can also add more c

Mistakes we do in exam

It’s the day before the exam, and your stress level is at an all time high. You’ve spent weeks studying every tiny detail and here you are, approaching exam day, and your mind is already going blank. There’s no way you’ll be able to get a full night of sleep—you’re nauseated, dehydrated, unfocused, unconfident, all of the above! pencil villainChances are, you’re about to make a major exam-prep-mistake that you could easily avoid. Students tend to make mistakes in their preparation or study regimes in the weeks or days leading up to a high stakes exam, which could hinder their performance, costing crucial points. Med students aren’t an exception to these common errors; in fact, they’re often the example. Picmonic helps you learn the information and retain it better. Combining it with the habits listed below are the best way to set yourself up for success. The USMLE Step 1 is arguably the most paramount exam in medical education, and every single point counts on the big day. So what

FARCRY 3 MISSIONS

Main Missions The main story missions of Far Cry 3. There are 38 missions in total. While the main story is told through these missions, various quests are found along the way which provide more characters, narrative, and precious money. Make A Break For It Down In Amanaki Town Harvest The Jungle Secure The Outpost Mushrooms In The Deep The Medusa's Call Playing The Spoiler Prison Break-In // Prison Escape Island Port Hotel Keeping Busy // The Social Club (Part 1) Meet Citra Bad Side of Town Kick the Hornet's Nest A Man Named Hoyt Saving Oliver // The Social Club (Part 2) Piece of the Past Down in the Docks The Motherlode Lin Cong I Presume Unhappy Reunion // The Social Club(Part 3) This Knife's For You Ambush Warrior Rescue Service New Rite of Passage Payback Citra's Favor Fly South Three Blind Mice Doppelganger Triple Decker Defusing the Situation Deepthroat All In Paint It Black Black Gold Aced in the Hole (Last Manual Save) Bett