Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

I need someone to help me write this code in C PLEASE. I never programmed before

ID: 3527292 • Letter: I

Question

I need someone to help me write this code in C PLEASE. I never programmed before and no one is helping me besides giving SQL snippets to make fun. Any help would be appreciated. I know it need a array, loop and call methos but Im not good at programming. SIMULATE the following scenario: A hypothetical program computes for three seconds then outputs a variable length record to be printed. The printer takes from 0.75 to 4.75 seconds (average time is 2.75 seconds) to print each output record. (Use a random number generator) The hypothetical program loops 500 times for each case of software buffers (0, 1, 2, 3, 4, 5, 10, 25, and 100 software output buffers). Calculate the AVERAGE time for the program to

Explanation / Answer

What part of the assignment do you need help with? Yahoo! Answers wasn't made to facilitate people doing each others' homework; if you don't do your own work, you'll never learn the fundamentals. You'll just screw yourself over in the end. I recommend you try to start on your assignment and then ask a problem about specific parts of your assignment if you have trouble with them. Your prof/teacher seems to give a pretty good outline of what parts you need. I will offer one suggestion: For the ToDigit() part, you can use a switch statement to keep the code clean. It's good for replacing what would have been a long chain of if statements, and it runs in constant time: switch( char c ) { case 'a' : return 1; case 'b' : return 1; ... }