Posts

Guess The Number Game In Java

Image
Subscribe to CODE.CIRCLE CODE:   package com.company ; import java.util.Random ; import java.util.Scanner ; class Game { int computer ; public Game (){ Random rand = new Random (); computer = rand . nextInt ( 100 ); System . out . println ( "Guess the Number Form 1 to 100" ); } public int computerNo (){ return computer ; } } public class CWH_43_EX3 { static int takeUserInput (){ int user ; System . out . println ( "Enter " ); Scanner sc = new Scanner ( System . in ); user = sc . nextInt (); return user ; } static void isCorrectNumber ( int i , int j ){ if ( i == j ){ System . out . println ( "Correct NO. Guess" ); } else if ( i > j ){ System . out . println ( "Your No. is Big than computer No." ); } else { System . out . println ( "Your No. is Small than comput...

Stone Paper Scissor game in java

Image
CODE: //Rock Paper scissor game in java //Subscribe CODE.CIRCLE package com.company ; import java.util.Random ; import java.util.Scanner ; public class CWH_20_EX2 { public static void main ( String [] args ) { int count , usercount = 0 , comcount = 0 , taidcount = 0 ; for ( count = 0 ; count < 5 ; count ++) { System . out . println ( "ENTER YOUR CHOICE: \n 1.STONE \n 2.PAPER \n 3.SIZER" ); Scanner sc = new Scanner ( System . in ); int user = sc . nextInt (); if ( user == 1 ) System . out . println ( "User choose: stone" ); else if ( user == 2 ) System . out . println ( "User choose: Paper" ); else if ( user == 3 ) System . out . println ( "User choose: sizer" ); else System . out . println ( "Wrong Input" ); Random rand = new Random (); int comp...

Bank Management System in CPP

Image
  Subscribe Code.Circle Source Code: #include<iostream> #include<fstream> #include<cctype> #include<iomanip> using namespace std; class account { int acno; char name[50]; int deposit; char type; public: void create_account(); void show_account() const; void modify(); void dep(int); void draw(int); void report() const; int retacno() const; int retdeposit() const; char rettype() const; }; void account::create_account() { system("CLS"); cout<<"\n\t\t\tEnter the Account No. : "; cin>>acno; cout<<"\n\n\t\t\tEnter the Name of the Account holder : "; cin.ignore(); cin.getline(name,50); cout<<"\n\t\t\tEnter Type of the Account (C/S) : "; cin>>type; type=toupper(type); cout<<"\n\t\t\tEnter The Initial amount : "; cin>>deposit; cout<<"\n\n\t\t\tAccount Created.."; } void account::show_account() const { cout<<...

STUDEN RECORD MANAGEMENT SYSTEM IN CPP

Image
 STUDEN RECORD MANAGEMENT SYSTEM IN CPP Source Code: #include<iostream> #include<fstream> #include<iomanip> using namespace std; class student { private:     int rno;     char name[50];     int enno;     float marks; public:     void getdata()     {         cout<<"\t\t\t\t\t Please Enter Student Details :"<<endl;         cout<<"\n\n\nEnter The Roll Number of the student: ";         cin>>rno;         cout<<"\nEnter student's Name: ";         cin.ignore();         cin.getline(name,50);         cout<<"\nEnter The Enrollment Number of the student: ";         cin>>enno;         cout<<"\nEnter The Marks of the student in Previous Year: ";         cin>>marks; ...

India map in C Language

 India map in C Language code: #include <stdio.h> int main() {     int a,b,c;     int count = 1;     for (b=c=10;a="- FIGURE?, UMKC,XYZHello Folks,\     TFy!QJu ROo TNn(ROo)SLq SLq ULo+\     UHs UJq TNn*RPn/QPbEWS_JSWQAIJO^\     NBELPeHBFHT}TnALVlBLOFAkHFOuFETp\     HCStHAUFAgcEAelclcn^r^r\\tZvYxXy\     T|S~Pn SPm SOn TNn ULo0ULo#ULo-W\     Hq!WFs XDt!" [b+++21]; )     for(; a-- > 64 ; )     putchar ( ++c=='Z' ? c = c/ 9:33^b&1);     return 0; } Subscribe the code.circle

Addition And Multiplication of polynomials using link list

Code : #include<stdio.h> #include<conio.h> #include<stdlib.h> struct node {     int coef;     int exp;     struct node *link; }; void insert_term(struct node **,int,int); void traverse(struct node *); void poly_add(struct node **,struct node **,struct node **); void poly_pdt(struct node **,struct node **,struct node **); void main() {     struct node *start_p=NULL,*start_q=NULL,*start_r=NULL;     int i,n,c,e;     printf("Enter first polynomial!\n");     printf("Enter no of terms:");     scanf("%d",&n);     for(i=0; i<n; i++)     {         printf("Enter coefficient: ");         scanf("%d",&c);         printf("Enter exponent: ");         scanf("%d",&e);         insert_term(&start_p,c,e);     }     printf("Enter second polynomial!\n"); ...

Vehicle Parking System in CPP

Code:  #include<iostream> #include<process.h> #include<stdlib.h> using namespace std; class Parking                       //CPP Features used classes and objects { protected: int amount; int Count; int two,three,four; public: Parking()                       //CPP Features used constructor { amount=0; Count=0; two=0; three=0; four=0; } void Delet() { amount=0; Count=0; two=0; three=0; four=0; cout<<"**************************************************"<<endl; cout<<"All Record deleted......."<<endl; cout<<"**************************************************"<<endl; } }; class TwoWheel:virtual public Parking           //CPP Features used hirarchicale inheritance used in this project { public:     void t_wheel() ...