C# Program
$10-30 USD
Paid on delivery
C# Program, need by 10:00pm central time USA, October 30
You are to create a class called Item which contains the following private variables:
string name; // Will be received from files.
int weight; //random number from 1-10
The class Weapon is derived from Item. The variable for that class is
int atk; //random number from 1-10
The class Armor is derived from Item. The variable for that class is
int def; //random number from 1-10
You will have 2 files. One called "[login to view URL]" which has the following:
Sword
Dagger
Bow
Lance
Mace
The "[login to view URL]" file has the following data
Helmet
Chest Plate
Mail Vest
Cloth Robe
Shield
Your program should create ONE array of 10 Items (no other arrays will be created and files will be closed after all 10 items are received from file). The computer will select the order the items are placed in the array Randomly. (You can try getting a random number between 1 and 2, if it is a 1 you place the next weapon from file while if it is a 2, you place the next armor... though be aware there will be a time when you already received all items from either the weapon or armor file, in which case you get the remainder items from the non-empty file to fill in the rest of the array).
You should then sort the Items based on Damage per minute and Armor per minute (do not separate the weapons and armors from the array, you will sort based on the DPM and APM numeric value). Basically some math will need to be done to get these values based on the following.
if the weight is 1, he can attack 10 times per minute. for each extra weight, he can attack one time fewer as shown in the following (defense works with similar formula):
Weight = 1, 10 attacks per minute.
Weight = 2, 9 attacks per minute.
Weight = 3, 8 attacks per minute.
Weight = 4, 7 attacks per minute.
Weight = 5, 6 attacks per minute.
Weight = 6, 5 attacks per minute.
Weight = 7, 4 attacks per minute.
Weight = 8, 3 attacks per minute.
Weight = 9, 2 attacks per minute.
Weight = 10, 1 attack per minute.
This means if the random number for weight is 7, he can attack 4 times in one minute. This multiplied by the weapon atk gives you the damage per minute.
Display (Neatly) all the content of the Item array on the screen( name, weight, atk/def and attack/armor per minute). You will then send the following to the Screen:
1. The weapon with the strongest Damage per minute along with the name, weight, attack and damage per minute.
2. The armor with the strongest Armor per minute along with the name, weight, defense and armor per minute.
Zip the entire folder
Project ID: #18057345
About the project
19 freelancers are bidding on average $34 for this job
Hi there, I do C# programming. I went through your requirements and I would like to do this project if given the opportunity. Let me know if you are interested.
Hello there, lots of experience teaching algorithms and programming with C/C++/C# st uni level. Let me know if you;re interested. Cheers!
Hi. I have strong power with c#. I can finish your project perfectly. Please contact me. Best regards.
Hello I'm a highly skilled software engineering developer and a C# developer I've read the description of this game (program)please contact me over chat for more details.
Hi, I have a master's degree in computer science, over 15 years of experience, and I'm a published author of books on Data Structures & Algorithms, and Computer Programming. I routinely help graduate/post-gradate st More
Greetings, I am interested in doing this job. I am BS-CS graduate and knows Java programming as well, because of which I can do this task with ease. Have worked on NetBeans, Eclipse. Please do give me a chance to p More
Hello, I am very good in c# programming, should it be a console app or app with UI? contact me, if you want to work together
Hey, I propose single day long delivery over this task Please message if you are interested over the proposal Thanks, Regards
Dear client. I've read your project description carefully and very interested. Let's discuss over chat and get started. Waiting your reply. Best regards.
I have written a similar program with c#,If you have any questions please contact me at some time by email ivanski34@gmail.
Hello, my name is Assylzhan. Your project is simple for me for sure. Will not lie - your project is first in freelancing life. I wish that you believe me, and give it for me. I will not fail !!! I'm smart guy, and i fi More
i am ready to work with you. my honor and awards are as under • 2nd Position in Internal Aptech Vision 2018 organized by Aptech Institute. • Participation in 8th Aptech Vision Exhibition organized by Aptech Instit More