Find Jobs
Hire Freelancers

My short course doesn't teach how to add an list to my loops and I would like to learn how to.

$8-15 USD / hour

Closed
Posted over 3 years ago

$8-15 USD / hour

Request detail My code ' ' ' #include <stdio.h> int main(){ int games; int red; int yellow; int green; int num, j; int n=1; double Ave; int k; scanf("%d", &games); // Take the users input and store it as red yellow green for(j=0; j<games; j++) { scanf("%d %d %d", &red, &yellow, &green); // store r y g as int's }// I need to store red yellow green values in a list of some sort <-- 1st //problem for(int i=0; i<games; i++){ printf("%d.", i+1); // need this to take values for red green yellow from a list for this equation //<-- 2nd problem num = (green*100)+(yellow*10)+red; // flip the colour values to create a 3- //diget int printf(" you rolled: %d, ", num); // first half of sent'ce with 3-didget int Ave = num/n; // Equation for average value printf("current average: %.1lf",Ave); // second half of sent'ce with running //average printf("\n"); n=n+1; } return 0; } ' ' ' I want this to print the values from the scanf commands THEN print the sentences. it should read 1. your number: xxx, average x1\n.... with the x values equaling the user input (reversed and converted to a 3-digit number) and the average being the sum of all 3-digit values up to that point, but I can't figure out how to do it (we haven't been taught arrays and "other.h" isn't accepted by our sandbox) any ideas or suggestions on how I can approach this?
Project ID: 26813135

About the project

11 proposals
Remote project
Active 4 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
11 freelancers are bidding on average $14 USD/hour for this job
User Avatar
I am very proficient in c and c++. I have 18 years c++ developing experience now, and have worked for more than 10 years. My work is online game developing, and mainly focus on server side, using c++ under Linux environment. I made many great projects using c++, for example, I made the tools which could convert java codes into c++ scripts, of course garbage collection included, this was very similar to a compiler, and was very complex. I also made our own mobile game using c++, I can show you the demo of client, if you like. I am very proficient in java also. I have a very good review on Freelancer.com, I never miss a project once I accept the job, you can check my review. Trust me, please let expert help you.
$20 USD in 2 days
4.9 (216 reviews)
7.4
7.4
User Avatar
Thanks for your project. I have 30 years experience programming in C and C++. We can schedule an hour lesson about how to organize code for this project so that it can be both functional and clear both from the code and supporting comments (programming notes). A milestone payment for the full budget for this project must be deposited with this site before your offer can be accepted. Alan Idler Chief Software Architect Idleswell Software Creations
$30 USD in 10 days
4.9 (186 reviews)
6.2
6.2
User Avatar
Salut. Am observat la country ca ai trecut romana. Am experienta de peste 4 ani in c/c++. Pot sa te ajut cu aceasta problema dar si cu alte notiuni despre c/c++. Scrie-mi pe chat sa discutam mai multe detali
$12 USD in 40 days
5.0 (2 reviews)
4.0
4.0
User Avatar
I'm an expert of c programming and have done many object oriented projects. I can help you in your scanf isuue.
$8 USD in 40 days
5.0 (12 reviews)
3.4
3.4
User Avatar
Hi there, I can mentor you for this specific problem. During the process you will be aware of many concepts as well that will allow you to store list of values as per your requirement. Ping me for discussion. Regards, Gourav
$13 USD in 2 days
5.0 (3 reviews)
2.3
2.3
User Avatar
Can help you with this task, one of my projects you can see in profile. I think there will be enough to use some arrays/structs/vectors. I'll add them and comments for you in your code if you choose me :)
$8 USD in 3 days
4.3 (3 reviews)
1.1
1.1
User Avatar
hello sir i am programmer and i can do this task to you. just text me in orivate chat. i am free now we can work now
$15 USD in 1 day
0.0 (0 reviews)
0.0
0.0
User Avatar
i am interested in this project..if you want we can discuss about it later..i will make sure to get your work done as soon as possible
$12 USD in 40 days
0.0 (0 reviews)
0.0
0.0
User Avatar
I'm a programmer with extensive knowledge of the C programming language. I have worked in projects where I progrmme in C and succesfully execute them. I'm available, reliable and ensures quality work.
$8 USD in 10 days
0.0 (0 reviews)
0.0
0.0

About the client

Flag of ROMANIA
Băilești, Romania
5.0
1
Member since Mar 8, 2020

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.