math problems


This assignment administers a math quiz to a student. The math questions are in the file

/gaia/class/student/srivatss/csc60_18/shell/[login to view URL]

There are 10 questions in the file , each question of the format :

operator operand1 operand2

Step 1. Declare an array int quizData [ 30 ] and fill it up using the data that is available in the file.

Do not write a program to read from the file.

Step 2. Could you shuffle the questions.

Step 3. Use a for loop to iterate through the array quizData to display each question and ask the user for a correct answer. If the answer is correct, display an encouraging text and update the score by one.

For instance, the first question and the user response (in red) might be

what is 6 plus 2 ?


Good Job. Your current score is : 1

The second question and the user response could be

what is 9 minus 2


Good Job. Your current score is 2

The third question should be

what is 3 times 4


Good Job. Your current score is 3




int quizData[30];

int readData()


int i, j;

FILE *fp;

fp =

fopen("/gaia/class/student/srivatss/csc60_18/shell/[login to view URL]","r");

if (fp == NULL)


printf("Unable to open the file.\n");



printf("The contents of the file are:\n", fp);

i = 0 ;

while ( 1 )


char ch;

ch = fgetc (fp);

if ( ch == '+' || ch == '*' || ch == '-' || ch == '/' )


printf ( "i=%c ", ch );

quizData[i++] = ch; // not casting, but I should actually

fscanf ( fp, "%d", &quizData [i++]);

printf ( "%d ", quizData [i-1] );

fscanf ( fp, "%d", &quizData [i++]);

printf ( "%d \n ", quizData [i-1] );


ch = fgetc (fp);

if ( ch == EOF )





main ( )



int j, i;

for ( j = 0; j < 30 ; j++)

if (j % 3 == 0)

printf("\n operator=%c ", quizData [j]);


printf("%d ", quizData [j]);


Taidot: C-ohjelmointi, tietojärjestelmäarkkitehtuuri, x86/x64 Assembler

Näytä lisää: gmat math problems fast, math problems project, statistical analysis math problems, math problems for 8th graders, math problems games, math problems with answers, college math problems, math problems to solve, free math problems, math problems algebra, math problems for kids, variable money math problems, exceeds math problems, math problems freelance works, economics math problems solutions, data interpretation math problems, discount math problems answers, examples quantitative math problems, statistic math problems, multi step math problems flow chart

Tietoa työnantajasta:
( 6 arvostelua ) sacramento, United States

Projektin tunnus: #17987406

Myönnetty käyttäjälle:


Hello, I am software engineer. I have read the description and I would like to work for you. For further details please inbox me. Thank you so much. Having Perfect Expertise in Required Programming Language and Frame Lisää

$20 USD 1 päivässä
(133 Arvostelua)

11 freelanceria on tarjonnut keskimäärin %project_bid_stats_avg_sub_26% %project_currencyDetails_sign_sub_27% tähän työhön


Hi C Expert here, well get your project done in very short time. Looking forward to work with you ..............

$20 USD 1 päivässä
(21 arvostelua)

Hi we are expert in all kind of academic and professional problems in C, Python, Java. and we will provide you best solutions for it , we will have a long lasting working relation

$20 USD 1 päivässä
(22 arvostelua)

Dear client. Happy to bid you. Please tell me your deadline. I will complete your requirement in time. Thanks.

$20 USD 1 päivässä
(8 arvostelua)

Greetings for the day!! We have experience working on this subject. We ensure 100% QUALITY with ON-TIME Deliveries. Please allow us to take this opportunity. Thanks & Regards, Team@The24CarrotsInc 100% Sa Lisää

$25 USD 1 päivässä
(10 arvostelua)
$15 USD 1 päivässä
(5 arvostelua)

Hi I have great experience in C programming language I will do this work asap, also I will provide you best service as you want. I will add comments on your code as well so that you can easily understand the code. T Lisää

$12 USD 1 päivässä
(4 arvostelua)

hello,how are you. i read your bid carefully. i am c/c++, math expert and have full experience for 10 years. c++ language is my top skill. i can provide most quality and high speed. if you want to success, please c Lisää

$25 USD 1 päivässä
(1 arvostelu)

Very interesting project! If you see my profile, you can know I am a mathematics professional. I major in analysis, calculus, statistics, numerical computation, fractal geometry and chaos dynamics as well as elementa Lisää

$50 USD 1 päivässä
(1 arvostelu)

Hi I am very interesting in your job. I am familiar with C/c++language and I am sure I can do it well. I want to do it plz chat with me

$25 USD 1 päivässä
(3 arvostelua)

I am a programming contestant. I solve problems in C++ language. I can help you out in this project. You can discuss more details me in chat.

$18 USD 1 päivässä
(0 arvostelua)