Find Jobs
Hire Freelancers

Mini C Program Edit Work

$10-30 CAD

Completed
Posted about 8 years ago

$10-30 CAD

Paid on delivery
Copy the functions (and prototypes) into your codeQuest source code file. Make a new function with the following signature: void battleSequence(float* days, int* curHP, int* exp, int maxHP, int str, int def, int intel, int luck) move all source code for the battle sequence to this function, adjust it as needed to make use of the parameter values. Enemy stats are not passed in, they should remain hard coded for now. For each round of the battle, reduce the days’ value by 0.1. If the player wins, increase their experience by the original health of the enemy (10). Move the main code from this lab into the newGame function where the battle code used to be, just after character creation. A new variable will need to be added to differentiate currentHP and maxHP. Add another option called "Fight Monster" which when selected calls the battle scene function, passing in the required variables. Use the input verification function from the previous lab to replace the menu input in this lab. Clear the screen before the overworld menu displays each time, add pauses (wait for the user to press enter) where appropriate so the messages don't dissappear immediately.
Project ID: 9753357

About the project

4 proposals
Remote project
Active 8 yrs ago

Looking to make some money?

Benefits of bidding on Freelancer

Set your budget and timeframe
Get paid for your work
Outline your proposal
It's free to sign up and bid on jobs
Awarded to:
User Avatar
$10 CAD in 1 day
5.0 (3 reviews)
1.1
1.1
4 freelancers are bidding on average $16 CAD for this job
User Avatar
Hello software engineer here group of 5 developers experts with penalty of experience can provide you quality work in given time inbox me asap so we can start waiting Thanks
$17 CAD in 0 day
5.0 (2 reviews)
2.1
2.1
User Avatar
Hi, dear! I am a good developer. I have a wealth of experience to perform this task you are required. Because I had C developing for 5 years, I will satisfy your needs. C programing is my best passion. If you want to do good this task, Please contact me. from hezhejin.
$10 CAD in 1 day
0.0 (0 reviews)
0.0
0.0

About the client

Flag of CANADA
Hamilton, Canada
5.0
27
Payment method verified
Member since Feb 22, 2016

Client Verification

Thanks! We’ve emailed you a link to claim your free credit.
Something went wrong while sending your email. Please try again.
Registered Users Total Jobs Posted
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Loading preview
Permission granted for Geolocation.
Your login session has expired and you have been logged out. Please log in again.