Technology Guruu

  • Home
  • Site Info
    • About Us
    • Disclaimer
    • Privacy Polacy
  • Home
  • Digital Marketing
    • SEO
    • SMM
    • SEM
  • Quotes
  • Technical
  • Java
  • .Net
    • C#.Net
    • ASP.Net
  • Keychains

Monday, 4 April 2016

Logical C#.Net Program for ATM machine

 Akansha     12:00:00     TechnicalQuestions     No comments   

.Net is a frame work it is a software in this we are execute 64+ languages like C#.net,vb.net,Asp.net etc.Now a days every company develop projects through ms.net.So,The top MNC companies concentrate only on ms.net and in the interview purpose asking more on ms.net.so we definitely know the ms.net so we are placed what are the frequently asked questions and impressed answers.Friends don't blindly follow the answers for questions first know the topic after that you are ready/prepare your answers for the questions and perform that answers in every interview.First i tension i understand the topic but i can't perform interview what i prepare, i think one day why i lose my interview i know the all answers on that day i find out the reason because i am not saying my answer in my proper understand manner.After that i am not repeated that mistake now i get the good job.So friends so many also having these problem so you want full description about any topic you are seen previous articles and you want questions follow this article.All the best for your Interview.

Logical C#.Net Program

questions

Q)Write a C#.Net program for working of ATM machine?
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ConsoleApplication1
{
class Program
{
static void Main(string[] args)
{
int amount = 1000, deposit, withdraw;
int choice, pin = 0;
Console.WriteLine("Enter Your Pin Number ");
pin = int.Parse(Console.ReadLine());
while (true)
{
Console.WriteLine("********Welcome to mohanreddy ATM Service**************\n");
Console.WriteLine("1. Check Balance\n");
Console.WriteLine("2. Withdraw Cash\n");
Console.WriteLine("3. Deposit Cash\n");
Console.WriteLine("4. Quit\n");
Console.WriteLine("*********************************************\n\n");
Console.WriteLine("Enter your choice: ");
choice = int.Parse(Console.ReadLine());
switch (choice)
{
case 1:
Console.WriteLine("\n YOUR BALANCE IN Rs : {0} ", amount);
break;
case 2:
Console.WriteLine("\n ENTER THE AMOUNT TO WITHDRAW: ");
withdraw = int.Parse(Console.ReadLine());
if (withdraw % 100 != 0)
{
Console.WriteLine("\n PLEASE ENTER THE AMOUNT IN MULTIPLES OF 100");
}
else if (withdraw > (amount - 500))
{
Console.WriteLine("\n INSUFFICENT BALANCE");
}
else
{
amount = amount - withdraw;
Console.WriteLine("\n\n PLEASE COLLECT CASH");
Console.WriteLine("\n YOUR CURRENT BALANCE IS {0}", amount);
}
break;
case 3:
Console.WriteLine("\n ENTER THE AMOUNT TO DEPOSIT");
deposit = int.Parse(Console.ReadLine());
amount = amount + deposit;
Console.WriteLine("YOUR BALANCE IS {0}", amount);
break;
case 4:
Console.WriteLine("\n THANK U USING ATM");
break;
}
}
}
}
}
please share to your friends and your feel free comment on my post.
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Email ThisBlogThis!Share to XShare to Facebook

Related Posts:

  • Why Multiple Inheritance Concept Not Applicable In C#.Net Many of us think we have inheritance topic that will solve any problem and we are implement anything in inheritance concept except one i.e Multiple … Read More
  • Updated Keywords in Java And Usage Of Java Keywords What are the Updated Java Keywords in 2016 Keywords are the heart of any programming language they play main role in developing programming.so frie… Read More
  • Best Tutorial of Constructors in OOPS Constructors and Methods are the heart for our programming languages like java,c#.net,vb.net etc Any developer first know the value of constructors… Read More
  • Brief Description About Master Pages In .Net Today I would like to write about master pages in Asp.net in these we are placed how to add master page to the solution explorer and how to add chil… Read More
  • Top 10 Difference between Java and .Net I just want to clarify one thing. This is not a question on which one is better, that part I leave to someone else to discuss. I don't care about it… Read More
Newer Post Older Post Home

0 comments:

Post a Comment

Popular Posts

  • Love Failure Quotes and Sad valentines day Quotes
    We Love Someone is a easy process sometime takes long time to love someone love others within short period but anyway always love dependin...
  • Brief Description about Multicast Delegate
    Multicast delegate is an extension of normal delegate. It helps you to point more than one method at a single moment of time. Multicast ...
  • Top 10 valentine's day Quotes and Greetings wishes
    All Lovers have Anxiety in Valentines day because it is a festival to all lovers in these they enjoy a lot and celebrate the Valentine...
  • Missing My Friend Quotes : Friendship Day Quotes 2017
    Friends today my article about missing friends and moments with them. Here you are seen the best friendship quotes and some  feelings when...
  • Brief description about Delegates
    Introduction about delegates and why delegates are came the main purpose of delegates how to useful and what are the advantages and disadv...
  • Wonderful sayings about Life.
    I Believe Follow  Things(Life Quotes) I Believe I believe: ********** Believe in Life ********** That we don't have to chan...
  • Top 10 Words Of Encouragement and encouraging quotes
    Friends when you are depression mood everyone have some encouragement words that gives boost strength for You i feel these quotes helpful ...
  • Na Tanu Samjhawan Ki Song lyrics
    Na Tanu Samjhawan Ki Song Lyrics With English Translation Movie : Humpty Sharma ki Dulhaniya Song : Samjhawan Song Singer : Arijit ...
  • swami vivekananda best motivational Quotes
    Some Peoples are always have a negative thinking & bad mood their heart always filled with sadness & they are in depression mood.e...
  • Best Good Afternoon wishes greetings and quotes
    Top Most Good Afternoon Wishes Good Afternoon wishes are gives a relaxation in afternoon time.This wishing can be done between 12 to 3 p...

Categories

  • Entertainment (67)
  • TechnicalQuestions (58)
  • Quotes (11)
  • C#.Net (8)
  • Java (8)
  • ValentinesDay (4)
  • SEO (3)
  • Home
  • About Us
  • Disclaimer
  • Privacy Policy
  • Sitemap

Copyright © 2015-2017 Good Friends 5.All Rights Reserved• And Our Sitemap • All Logos and Trademark Belongs To Their Respective Owners•