Posts

interface in Java by lakshmanse

interface Intfac{    void see(); } class One implements Intfac{   public void wish(){     System.out.println("Hello users 👋"); } public void see(){   System.out.println("Hello users Can you 🙈 See"); } } class Main extends One {   public static void main(String[] args) {     System.out.println("Hello world!"); One obj = new One(); obj.wish(); obj.see();      } }

Microsoft hiring process explained

Image

who does what ? [ what is the difference between software developer and full stack developer]>>>

Image

A very big sum (long long int sum )

#include <iostream> using namespace std; int main() { int n; long long int sum=0; cin >> n; vector<int> arr(n); for(int arr_i = 0;arr_i < n;arr_i++) { cin >> arr[arr_i]; sum+=arr[arr_i]; } cout<<sum; return 0; }

C++ Program For HANGMAN ( GAME PROJECT )

#include <iostream> #include <cstdlib> #include<ctime> #include <string> using namespace std; const int MAX_TRIES=5; int letterFill (char, string, string&); int main () {  string name;  char letter;  int num_of_wrong_guesses=0;  string word;  string words[] =  {  "india",  "pakistan",  "nepal",  "malaysia",  "philippines",  "australia",  "iran",  "ethiopia",  "oman",  "indonesia"  };  //choose and copy a word from array of words randomly  srand(time(NULL));  int n=rand()% 10;  word=words[n];  // Initialize the secret word with the * character.  string unknown(word.length(),'*');  // welcome the user  cout << "\n\nWelcome to hangman...Guess a country Name";  cout << "\n\nEach letter is represented by a star."; cout << "\n\nYou have to type only one letter in one try"; cout << "\n\nYou have ...

tic tac toe game in cpp

#include <iostream> using namespace std; char CharMatrixDraw[10] = {'0','1','2',        '3','4','5',        '6','7','8','9'}; int winner(); void GameChart(string,string); This program is divided into 3 Parts read a Full Article for understanding full code 1.GameChart draw. 2.Changing the Value of GameChart. 3.Check Win. */ int main() {   int Gamer = 1, i, choice;  string name1;  string name2;  cout<<"Enter First Gamer Name: ";  cin>>name1;  cout<<"\nEnter Second Gamer Name: ";  cin>>name2; char mark;      do   {     GameChart(name1,name2);     Gamer=(Gamer%2)?1:2;    if (Gamer==1)  {   cout <<name1<< " Your Turn, Enter a Number: ";     cin >> choice;  }  else  {   cout <<name2 << " Your Turn, Enter a Number: ";     cin >> choice;  } /* Part 2 ...

student management system project 2

#include<iostream> #include<string> #include<conio.h> #include<stdlib.h> using namespace std; int main(); void show_data(int searchkey); //function used to show data to end-user. void get_data(int i); //function used to obtain data from end-user. void search_student(int searchkey); void add_student(); //This function is used to add record of new student. void edit_student(int idnumber); //function is used to edit existing record.    void fullscreen(); int ts; struct student     //Structure student is made to store student attributes. {    int rollno;    string name;   string fname;   string cell;   string dob;   string address; }; student rec[50]; //This is basic array of defined structure to sore data. int main() {   system("CLS");   system("color B1");   int choice; //int variable used to determine which operation user want to do.   int idnumber; //int vari...