Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

How do I make my code run properly? I’m stuck. This is CMIS 103 HW3.

How do I make my code run properly? I’m stuck. This is CMIS 103 HW3.

// C code

// This program will calculate the average miles walked in a week.

// Developer: Monique Blanchard

// Date: Feb 23, 2019

#include<stdio.h>

int main(void) {

int loopcount;

int miles;

int total;

int sum;

total=5*7;

loopcount =0;

while (loopcount < 7);

// begin loop {

printf(“how many miles did you run today “);

scanf(“%f”, miles);

loopcount = loopcount +1;

sum = sum + miles;

} // end loop

Screenshot (37).png

Screenshot (37).png
Homework 3 – Create your own Loop application
Create your own While – End or ( For End ) repetition using C code . One of the following themes*
should be used :&quot;
Summing the total miles run or walked in a typical week
Summing the cost for groceries spent during a month
Summing the cost of hotel rooms used during vacation in a year
Summing the total number of automobile accidents in the DC area in one week
Be sure to provide an overview of what your repetition structure is doing . Please keep the design
simple for this exercise . Just a few lines of code is all that is needed for this response .
Provide the C code and a screen capture showing the results of testing your code in an online*
compiler . Be sure to test your code with several test cases and show your test case table . Include*
header documentation in the code as well as internal code documentation .
Submit your word or PDF file , along with your fully tested C code to your assignments folder no
later than the due date .
Grading guidelines
Submission
Points
Ccode for simple While or For loop was provided and compiles and runs
4
 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"