Find Jobs
Hire Freelancers

C# I need a help with building this program and in the same time.

$30-250 AUD

I përfunduar
Postuar about 1 year ago

$30-250 AUD

Paguhet në dorëzim
This is the start of a series of tasks in which you will develop a small program. These tasks are designed to help you explore the concepts being covered, and to practice your programming skills. For this task, you will write the start of this program and implement one of its core classes. Submit the following files to OnTrack. Your program code ([login to view URL] and [login to view URL]) A screen shot of your program running You want to focus on the use of classes and objects within the program, and the ability to capture knowledge and behaviour within the program’s objects. You will be creating a Banking program. The bank program will have an account, and the account will be able to withdraw and deposit money. It will also be able to print its balance and other details to the terminal. When the program runs, an Account object is created, and money is deposited and withdrawn into the account. To get this started we will build the code for the Account class, and give it the knowledge and methods it needs to be able to withdraw, deposit and print its balance. 1. Use skm and dotnet to start a new project for BankProgram. skm dotnet new console skm dotnet restore Before we can start writing the code we need to understand what we are trying to build (analyse the requirements) and then come up with a plan to get something working quickly. For this program we will be modeling a standard Bank Account. Think about the kinds of things you would associate with a Bank Account, and these can be used to design an Account class. What things will an Account need to know and what will it need to be able to do? I have a design in mind, but have a quick think before progressing to the next page. Account Class First Design Ok, hopefully you had some good ideas. The way I see this, we are going to need a Program which creates Account objects. The Program will then perform some operations on the Account (such as withdraw and deposit), and also ask the account to print its balance. When building software, you want to work in small steps. So rather than trying to get all of this working in one go let’s focus on getting part of the account working. Here is the UML Class diagram that shows what we need to build in this iteration (another name for step): Figure: Iteration 1, showing the Program and Account classes 1. In the project, create a new file called Account.cs. We will use this file to contain all of the code for the Account class. For anything beyond a small program, it is best to separate the code into multiple files. 2. Create a new Account class. 3. Within the account class block, add the one private decimal field for the _balance . Reminder: a code block is the lines of code between a pair of braces: {} . 4. Have a go at adding the private string field _name yourself. Let’s have a go at compiling and running this program, it won’t do much right now, but it’s a good time to make sure we have no syntax errors. Execute skm dotnet run in the terminal to compile and run the program, you shouldn’t see any errors. using System; public class Account { } private decimal _balance; Now that our class has “knowledge”, let’s add some of the functionality (methods) to our class. 5. The first method we’re going to add is a constructor. This will be used when we create an Account object to initialise the name and balance of the account. 6. Also inside of Account class, add the Deposit method: 7. Have a go at adding the Withdraw method yourself! 8. We can now also add in a Name read only property to give others the ability to check the name of the Account. A read only property is one that only as a get accessor. Here is the code for getting the name of the account.
ID e Projektit: 36221199

Rreth projektit

5 propozime
Projekt në distancë
Aktive 1 yr ago

Po kërkoni të fitoni para?

Përfitimet e ofertës për Freelancer

Vendosni buxhetin dhe afatin tuaj
Paguhuni për punën tuaj
Përshkruani propozimin tuaj
Është falas të regjistrohesh dhe të bësh oferta për punë
I dhënë për:
Avatari i Përdoruesit
I can work for you on this task, it is a pretty straightforward task, I have experience in working with similar tasks and can deliver in no time. I have over 4 years of experience in development ranging from developing enterprise applications with modules similar to bank accounts with functions to withdraw and deposit money. While working on this task I will share with you GitHub repository where you can track progress in order to be totally transparent with you. Thank you for reviewing my proposal.
$50 AUD në 2 ditë
5,0 (7 përshtypje)
4,0
4,0
5 freelancers are bidding on average $90 AUD for this job
Avatari i Përdoruesit
Hi there, I've helped a lot of students with their obstacles in schools. Let me know how I can assist you with this. I am an expert C# developer. Feel free reaching out! Regards, Paul G. (Professional C# .NET Software Developer)
$150 AUD në 1 ditë
5,0 (4 përshtypje)
3,8
3,8
Avatari i Përdoruesit
Hi, how are you doing? I can help you with this task. When do you want it done? And what part do you want help with? Thanks, Osama
$30 AUD në 1 ditë
5,0 (7 përshtypje)
3,4
3,4
Avatari i Përdoruesit
Hi, I hope you are fine. I just read your project description. I am glad to find out that this project perfectly fits my skills. I will be happy to complete this project for you as described. Please feel free to reach us out anytime for further 'detailed discussion' about your project. Thank you!!
$140 AUD në 7 ditë
0,0 (0 përshtypje)
0,0
0,0
Avatari i Përdoruesit
I solve project in different languages. So i am best to solve your problem. So hire me to solve problem
$80 AUD në 10 ditë
0,0 (0 përshtypje)
0,0
0,0

Rreth klientit

Flamuri i AUSTRALIA
SOUTHBANK, Australia
5,0
1
Mënyra e pagesës u verifikua
Anëtar që nga gush 6, 2022

Verifikimi i klientit

Faleminderit! Ne ju kemi dërguar me email një lidhje për të kërkuar kredinë tuaj falas.
Ndodhi një gabim gjatë dërgimit të email-it tuaj. Ju lutemi provoni përsëri.
Përdorues të regjistruar Punë të postuara
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Po ngarkohet shikimi paraprak
Leja u dha për Geolocation.
Seanca e hyrjes ka skaduar dhe ke dalë. Hyr sërish.