Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

You will need to create a series of applications which produce forms using all t

ID: 3808366 • Letter: Y

Question

You will need to create a series of applications which produce forms using all three of these programming languages, C++, Java, and C#. Make sure you follow each step listed below carefully. You will design the forms in different programming languages in order to see which one would best serve your customer. After completion of these applications your group will give a presentation of each and you will give a professional suggestion as to which programming language you think was most accommodating for the requested requirements.

Create a form such as a hotel registration form

Create a form which lists customers’ room choice

Create a bank card form (for credit/debit card)

Create a form which lists customers’ rewards membership information

The form should open and allow the customer to type in his/her name, address, etc.

Explanation / Answer

//using c++hotel registration and customer room choice form//

include<iostream.h>
classdate;
class Reservation;
classRooms;
class Hotel;
voidmain()
{}classdate{
int day;
intmonth;
int year;
public:
date()
{ day=1;
month=1;
year=2000;}
void defultset()
{ day=1;
month=1;
year=2000;}
void set()
{cin>>day>>month>>year;}
int getday()
{returnday;}
int getmonth()
{returnmonth;}
int getyear()
{returnyear;}
};
classReservation{
int id;// how to increment id ?
date Date;
int periodDay;
intRoomID;
Rooms state; //why error ??
// Rooms roomID; //need to be defult & set
public :
friendRooms;
friend Hotel;
Reservation()
{ id =0;
Date.defultset();
  periodDay=7;
  RoomID=state.id;
}
~Reservation(){};
};
classRooms{
int id;
intfloor;
float price;
Reservation state;
int reserved;
public:
Rooms(){
id=0;
floor=3;
price=150.05;
reserved= ( state.id >0);
}
friend Reservation;
friendHotel;
};
classHotel{
int n,m;
intid;
int floors;
Reservation * reserve;
Rooms * room;
public :
friendRooms;
friend Reservation;
/*reserve = new Reservation[n] ;
rooms = new Rooms[m];*/
};

//bank card form using c ++//


#include<iostream>
#include<conio.h>
#include<string>

using namespace std;
class atm
{
private:
float balance;
public:
atm() {
balance=0;
}
void deposit(float a)
{
cout<<"Enter amount you want to deposit"<<endl;
cin>>a;
balance=balance+a;
}
void withdraw(float b) {
cout<<"Enter money you want to withdraw"<<endl;
cin>>b;
if(b>balance)
cout<<"Your balance is not enough to continue transaction"<<endl;
else
balance=balance-b;
}
float showBalance()
{
return balance;
}};
void main(){
atm ob;
float y=0,z=0;
char choice;
string password="";
char a;
cout<<"Enter your password:"<<endl;
do{
a=_getch();
switch(a) {
case '': // "" is used for BACKSPACE
if(password.length()>0) {
password.erase(password.length()-1);
cout<<''<<" "<<'';
break; }
default:
if(a>31&&a<127) // 31 to 127 are ASCII code for keyboard keys {
password.push_back(a);
cout<<"*";
} }}
while(a!=' '); // " " is used for ENTER
if(password=="tzt") {
cout << " ^^^^Access granted^^^^ ";
cout<<"Your current account balance is 0. "<<endl;
Do{
int opt;
cout<<"Enter 1 if you want to deposit money."<<endl;
cout<<"Enter 2 if you want to withdraw money."<<endl;
cin>>opt;
switch(opt) {
case 1:
ob.deposit(y);
break;
case 2:
ob.withdraw(z);
break;
default:
cout<<"Wrong entry!"<<endl;
break; }
cout<<"Your account balance:"<<ob.showBalance()<<endl;
cout<<"******PRESS****** y to continue n to terminate ";
cin>>choice;
}
while(choice!='n');
}
else
{
cout << " Access denied... ";
}
cout<<"*********GOOD BYE*********"<<endl;
getch();   
}

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote