Find Jobs
Hire Freelancers

Mini C Program Edit Work

$10-30 CAD

Selesai
Dibuat sekitar 8 tahun yang lalu

$10-30 CAD

Dibayar ketika dikirim
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.
ID Proyek: 9753357

Tentang proyek

4 proposal
Proyek remot
Aktif 8 tahun yang lalu

Ingin menghasilkan uang?

Keuntungan menawar di Freelancer

Tentukan anggaran dan garis waktu Anda
Dapatkan bayaran atas pekerjaan Anda
Uraikan proposal Anda
Gratis mendaftar dan menawar pekerjaan
Diberikan kepada:
Avatar Pengguna
$10 CAD dalam 1 hari
5,0 (3 ulasan)
1,1
1,1
4 freelancer menawar dengan rata-rata $16 CAD untuk pekerjaan ini
Avatar Pengguna
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 dalam 0 hari
5,0 (2 ulasan)
2,1
2,1
Avatar Pengguna
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 dalam 1 hari
0,0 (0 ulasan)
0,0
0,0

Tentang klien

Bendera CANADA
Hamilton, Canada
5,0
27
Memverifikasi Metode pembayaran
Anggota sejak Feb 22, 2016

Verifikasi Klien

Terima kasih! Kami telah mengirim Anda email untuk mengklaim kredit gratis Anda.
Anda sesuatu yang salah saat mengirimkan Anda email. Silakan coba lagi.
Pengguna Terdaftar Total Pekerjaan Terpasang
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
Memuat pratinjau
Izin diberikan untuk Geolokasi.
Sesi login Anda telah kedaluwarsa dan Anda sudah keluar. Silakan login kembali.