Hey guys, I have to make a visual basic program for a school assignment. I am an absolute beginner at it though, but am willing to learn.
I have to make an income calculator for farmers that make giant turnips.
So basically:
1. If the turnip weighs less than 350kg, the farmer will receive $2 per kilo
2. If the turnip weighs 390 or more, the farmer gets $1.50 per kilo MINUS $180 for a maintenance fee.
3. If the turnip weighs between 350 and 389kg, it has to be sent to a paddock that costs $25 per week for lease. Turnips loose 1% of their mass per week in this paddock. When the turnip gets below 350kg it can be exported. As ships depart weekly, turnips may drop a bit below 350Kg before departure.
Create a profit calculator for the turnip farmer for a list of cattle weights.
Functional Requirements:
o Enter the weight of each cow into an array
o Calculate the income from each cow and store in another array
o Add up the values in the array and display total income.
Any help or specific code would be very helpful. It doesn't need to be pretty, just needs to work.
Bookmarks