cs411 assignment 2 Solution 2021
Note :
For Unique Solution Contact on Whatsapp
03235459470
code
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace Project
{
class Program
{
private string vuid;
private string vu_name;
public Program(string vuid, string vu_name)
{
this.vuid = vuid;
this.vu_name = vu_name;
}
static void Main(string[] args)
{
int fix = 1000;
Console.WriteLine("Enter the name of depositor ");
String name = Console.ReadLine();
Console.WriteLine("Enter the name of Account Number ");
String account = Console.ReadLine();
new Program(account, name);
Console.WriteLine("Enter the ammount to deposit ");
int amount = Convert.ToInt32(Console.ReadLine());
int balance = fix + amount;
MessageBox.Show("Your balance is :" + balance, "Balance", MessageBoxButtons.OK, MessageBoxIcon.Information);
Console.WriteLine("Enter the ammount to withdraw ");
int withdraw = Convert.ToInt32(Console.ReadLine());
Application.Run(new Project.Deposit(balance, withdraw));
}
}
class Deposit : Form
{
private int balance;
private Button button1;
private int withdraw;
public Deposit(int balance, int withdraw)
{
this.balance = balance;
this.withdraw = withdraw;
InitializeComponent();
}
private void InitializeComponent()
{
this.button1 = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// button1
//
this.button1.Location = new System.Drawing.Point(119, 127);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(75, 23);
this.button1.TabIndex = 0;
this.button1.Text = "Withdraw";
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// Deposit
//
this.ClientSize = new System.Drawing.Size(332, 295);
this.Controls.Add(this.button1);
this.Name = "Deposit";
this.ResumeLayout(false);
}
private void button1_Click(object sender, EventArgs e)
{
if (this.withdraw > this.balance)
{
MessageBox.Show("Not Sufficient Balance:", "Error", MessageBoxButtons.OK, MessageBoxIcon.Error);
}
else
this.balance = this.balance - this.withdraw;
MessageBox.Show("Now remaining balance is :" + this.balance, "Balance", MessageBoxButtons.OK, MessageBoxIcon.Information);
}
}
}
PURPOSE OF VUPORTAL865.COM
Virtual university is Providing quality of Education in Pakistan and Overseas too. Thousands of Students getting quality education. Virtual University of Pakistan is first university In Pakistan that providing online education to everyone in Pakistan. in this university online Education is easy and Affordable for everyone.
Most students find trouble scheduling time for their assignments since the research work is a time-consuming activity. Even so, others find trouble writing their assignment due to a lack of writing skills. Such students need to worry no more since there are several available online assignment help websites. As such, this article provides the top 10 most trusted online assignment help websites that ensure that students get the best out of their assignment help services.
We take your assignments with paramount importance as happy students are our primary goal. Our services are the most affordable, trustworthy and cover a lot of subjects.
Assignment Submission Instruction
Please read the following
instructions carefully before submitting the assignment:
It should be clear that your assignment will not get 0 if:
Ø The assignment is submitted after the due date.
Ø The submitted assignment file is corrupt or does not open.
Ø Assignment is copied from any where like any student or from internet.
How to Submitted Assignment:
Ø Download a question File of the Assignments on LMS.
Ø Solve a question and make a file own words.
Ø Save an Answer file in which extension who Instructor Told.
Ø Go to the LMS and Click the Books Code which you can make a solution file.
Ø Go to the Submitted Option and Click the Chose File Button.
Ø File chose where you can Save the File.
Ø After chose the File last step click the Submitted Option.
For Paid Assignments Solution
Contact us on WhatsApp
MR Ammar(Developer) +923235459470
MR Atif (Blogger) +923086278790
MR Umar (WordPress Expert) +923053183537
Mam Farah(Assignment Expert) +994409089591
FOR ALL ASSIGNMENTS VISIT THE WEBSITE BELOW
CLICK HERE
Comments
Post a Comment