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...
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() ...
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; ...
Comments
Post a Comment