GradePack

    • Home
    • Blog
Skip to content
bg
bg
bg
bg

GradePack

Suggested Time < 1 hr. UPLOAD C Script! Objective: To check...

Suggested Time < 1 hr. UPLOAD C Script! Objective: To check students knowledge on ARRAYs and LOOPs. We have a shape with “n” sides. You would like to know the distance between adjacent vertices. Also, you want to know the average distance, median distance, the shortest distance, and the longest distance.  The whole thing has to be done by using LOOP and ARRAY. You do not have to use User Defined function (UDF) for this question (But I would not mind if you decided to use UDFs.) Create a C script that 1. will prompt the user for the value of "n". The "n" is the number of the sides in a shape. 2. Then, the script should prompt the user prompt the user “n” times or “n x 2” times for (x, y) value of each vertex of the shape. 3. Then, compute the distance between adjacent vertices, then show!.4. Also, compute the average distance.5. Also, compute the median distance.6. Also, show the shortest distance and the longest distance.      Output Sample 1 (For this, distances are between (vertex 1 and vertex 2), between (vertex 2 and vertex 3 ), and between (vertex 3 and vertex 1)   Output Sample 2 (For this, distances are between (vertex 1 and vertex 2), between (vertex 2 and vertex 3 ), between (vertex 3 and vertex 4 ), and between (vertex 4 and vertex 1)     *Hint:  Say, we have a Hexagon (a shape with 6 sides, so n = 6). Distances between vertex 1 and vertex 2 between vertex 2 and vertex 3 between vertex 3 and vertex 4 between vertex 4 and vertex 5 between vertex 5 and vertex 6  can be computed by using a loop (by running the loop 5 times). Then, the distance between vertex 6 and vertex 1 can be placed in the array after the completion of the loop.    your_array[last_spot] = distance between vertex 6 and vertex 1     Distance formula between two points (X1, Y1) and (X2, Y2) :       

Read Details

1) Name the three muscles that make up the erector spinae gr…

1) Name the three muscles that make up the erector spinae group. Hint: you might recall the mnemonic I Love Standing to help you remember! 2) Punnett square. Duchenne muscular dystrophy is a sex-linked disease affecting primarily males.  If a female is a carrier for this condition and she has kids with an unaffected (normal) male, what is the probability, in percent, that the offspring will be a male with the disease? 

Read Details

Consider the data Repair. (a) Develop the estimated simple l…

Consider the data Repair. (a) Develop the estimated simple linear regression equation to predict the repair time (y) given the type of repair (x1). x1 = 0 if the type of repair is mechanical and 1 if the repair is electrical. (c) Develop the estimated linear regression equation to predict the repair time (y) given the type of repair (x1) and the repairperson who performed the service (x2). x1 = 0 if the type of repair is mechanical and 1 if the repair is electrical. X2 = 0 if Bob Jones performed the service and 1 if Dave Newton performed the service. Between (a) and (c), which one is a better fit? Why?

Read Details

Franklin’s Junto Club began in 1727 and initiated the first…

Franklin’s Junto Club began in 1727 and initiated the first lending library, among other public services. 

Read Details

When you are completely done with your exam please rip up yo…

When you are completely done with your exam please rip up your scratch paper if you used one. You can KEEP your notes page.  Speak your name one more time.   Thank you and have a great rest of your day!    

Read Details

How does a change in total fixed costs (perhaps due to a sig…

How does a change in total fixed costs (perhaps due to a significant change in production levels) effect on the total contribution margin?  

Read Details

Q200

Q200

Read Details

Q201

Q201

Read Details

Q154  

Q154  

Read Details

  Bryan Inc. sells products for $90 each that have variab…

  Bryan Inc. sells products for $90 each that have variable costs of $62 per unit. The company’s annual fixed cost is $590,800 Calculate the breakeven point in units. Round the final answer UP to the next unit if necessary.

Read Details

Posts pagination

Newer posts 1 … 37,415 37,416 37,417 37,418 37,419 … 92,452 Older posts

GradePack

  • Privacy Policy
  • Terms of Service
Top