Loading...

Messages

Proposals

Stuck in your homework and missing deadline? Get urgent help in $10/Page with 24 hours deadline

Get Urgent Writing Help In Your Essays, Assignments, Homeworks, Dissertation, Thesis Or Coursework & Achieve A+ Grades.

Privacy Guaranteed - 100% Plagiarism Free Writing - Free Turnitin Report - Professional And Experienced Writers - 24/7 Online Support

C coding

10/09/2020 Client: ericsermon1000 Deadline: 2 Day

For this assignment, you will create the following files. You will submit them by pushing it to your Github repository for class.

0. **readme.md** a readme markdown file (provided)

1. **code/vector3D.c** where you will put your function definition

2. **code/vector3D.h** where you will put your function prototype and struct definition

3. **code/Makefile**

4. **code/main.c** where you will define a main program that runs some tests of your functions

5. **writeup/writeup.pdf** where you will write up your results

6. **writeup/references.pdf** where you will write a list of your collaborators and any references you used. 


2. **Define a 3D vector struct:** Define a struct called vector3D in code/vector3D.h. The struct should have 3 float values (called x, y, and z).



2.5. Reminder: commit your changes.



3. **Define prototype in header file:** In code/vector3D.h, define the prototype of a function called norm that calculates the Euclidean norm $$\sqrt{x^2 + y^2 + z^2}$$ of any vector with 3 entries. The output should be a float, and the function should take one input: a vector3D struct.



4. **Implement the norm:** In code/vector3D.c, implement the function called norm, using the same input and output types as specified in the corresponding prototype. Note that you'll need to use the standard math library and include the math header file to call the function that calculates a square root.



4.5. Reminder: commit your changes.



5. **Write a test:** In code/main.c, write a main program to:

* Create a vector3D struct called aVec which has (1, -4/3, 0) as its (x,y,z) components.

* Calculate n, the Euclidean norm of aVec. Print out "Output of norm function, n is " followed by the n value you calculated. We know from pencil-and-paper math that $$\sqrt{(1)^2 + (-4/3)^2 + (0)^2} = 2$$. (Writeup question #1: What does it output?)

* Print out "Is n exactly equal to 5/3?" followed by the boolean result of checking exact equality of 5.0/3.0 and n. (Writeup question #2: What is the result? Why might that be?)

* Print out "Difference between n and 5/3 is " followed by the difference between 5.0/3.0 and n, being sure to use scientific notation with %.10e formatting when you print it out. (Writeup question #3: How large is the difference between 5.0/3.0 and n? Explain why this does or doesn't make sense.)



5.5. Reminder: commit your changes.



6. **Makefile rule to compile:** In code/Makefile, write a rule called **buildMain** to compile the code using the gcc compiler with no optimizations and output a binary called main. You'll need to include the flag for the math library. (Writeup question #4: Draw a diagram on less than half a page illustrating what the compiler does with main.c, vector3D.c and vector3D.h) Before moving on to step 7, first make sure that your code compiles.



7. **Makefile rule to run tests:** In code/Makefile, write a rule called **run** to run the main test and print out results to the command line.



7.5. Reminder: commit your changes.



8. **References:**  In writeup/references.pdf make a list of any references you use and any collaborators you worked with (no matter if you helped them or they helped you). Note that you must also include a comment on any line of code that is based on code from class or a reference.



Hint: on the writeup and references documents, don't just make a .txt file then rename it to .pdf. Literally make a pdf on your computer that can be opened with a pdf viewer, then add those to your repo.



9. **Writeup:** In writeup/writeup.pdf answer the 4 writeup questions using complete sentences.



9.5. Reminder: commit your changes and **don't forget to push**! Delete all executable files.



10. **Submit:** You should have been committing code changes regularly. Go to the GitHub website those changes are pushed to GitHub and that your repository is linked to the course's GitHub Classroom.

Homework is Completed By:

Writer Writer Name Amount Client Comments & Rating
Instant Homework Helper

ONLINE

Instant Homework Helper

$36

She helped me in last minute in a very reasonable price. She is a lifesaver, I got A+ grade in my homework, I will surely hire her again for my next assignments, Thumbs Up!

Order & Get This Solution Within 3 Hours in $25/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 3 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 6 Hours in $20/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 6 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

Order & Get This Solution Within 12 Hours in $15/Page

Custom Original Solution And Get A+ Grades

  • 100% Plagiarism Free
  • Proper APA/MLA/Harvard Referencing
  • Delivery in 12 Hours After Placing Order
  • Free Turnitin Report
  • Unlimited Revisions
  • Privacy Guaranteed

6 writers have sent their proposals to do this homework:

Academic Master
Professional Accountant
Essay Writing Help
Study Master
Top Grade Tutor
Writer Writer Name Offer Chat
Academic Master

ONLINE

Academic Master

I have super grip on essays, case studies, reports and discussion posts. I am working on this forum from last 6 years with full amount of satisfaction of my clients.

$80 Chat With Writer
Professional Accountant

ONLINE

Professional Accountant

Hi! It is good to see your project and being a reputed & highest rated freelance writer on this website, you can be assured of quality work! I am here to provide you with completely non-plagiarised work

$95 Chat With Writer
Essay Writing Help

ONLINE

Essay Writing Help

I can provide plagiarism-free work for you within your given deadline. My professional writing career started around 5 years back with a local writing company in my city where I have produced 1000+ documents for my clients.

$95 Chat With Writer
Study Master

ONLINE

Study Master

I am highly qualified expert, working from 2008-9 in this industry. I have all relevant skills and expertise related to your project.

$75 Chat With Writer
Top Grade Tutor

ONLINE

Top Grade Tutor

I am highly qualified expert, working from 2008-9 in this industry. I have all relevant skills and expertise related to your project. To ensure my potential must visit my profile to check my ratings and uploaded samples. Thanks :--)

$80 Chat With Writer

Let our expert academic writers to help you in achieving a+ grades in your homework, assignment, quiz or exam.

Similar Homework Questions

Heritage dolls inc - Discussion Question - The effects of coyote removal in texas answers - A chain of appliance stores app corporation - What temperature does water boil at 10000 feet - Sres lópez la mantequilla por favor - Lisa neville richard marles - Hawkins and clinton book review - Organizational behavior is examined at three levels - Pr 7-1a fifo perpetual inventory - Light and heavy letters in arabic - Balloon pyramid minute to win it blueprint - Heat of neutralization lab answer key - Introducing new coke case study - Consider the following network representation of a transportation problem - Milestone 3 - Adventure Game Outline: Module Development - The masses are assess quote - This will be a blueprint on business innovation/information technology with Netflix Create an individual data and technology back-up plan. - Organizational structure - Abnormal behavior - Who can administer the mcmi iv - Professional web page - Engal kalyanam - Shabdam bharatanatyam dance mp3 - Bearings problems with solutions - Titration of iron ii with potassium manganate - Acids and bases worksheet - Effective Teams - Thought Responses - Aire and calder circuit - Business - Ias 16 property plant and equipment multiple choice questions - Bus timetable dee why to manly - Pamper spoil crossword clue - History Discussion - Spillover animal infections and the next human pandemic pdf - Debemos llenar este formulario cuando solicitemos el préstamo. - First ionisation energy of sodium - Depth of field mr doob - Vision statements from fortune 500 companies - Example of a character sketch bible study - Mcgraw hill accounting chapter 10 answers - Where did julian jumpin perez go to high school - Iqa roles and responsibilities - Supernatural in macbeth quotes - Assume the following information about the market and jumpmasters stock - Chapter 9 natural laws and car control answer key - A project manager has compiled a list of major activities - Science in the news assignment - General solution of wave equation in one dimension - Mary shelley frankenstein 1831 mla citation - 2 identify professional disciplines that influence human services - Health promotion in nursing practice 6th ed - 600 pair color code - Http supp apa org style pm6e corrected sample papers pdf - Tutorial 4 case problem 1 sky dust stories - Leap motion touch screen - Grundfos magna1 fault codes - 4 levels of customer service - Netwox 78 - Solve the given differential equation by separation of variables - Alprim 300 mg for uti - Conveyor belt project part 5 answers - Ge ecomagination criticism - Hydrochloric acid + sodium carbonate - Capitalism a love story answers - Around 1000 words - The great depression a diary - Why are elements and compounds considered pure substances - Sam kant appellate brief - Rogers products uses a periodic inventory system - Discussion week 8 833 - Course designer job description - Beseech definition romeo and juliet - Finance - Water cycle plastic bag - Sir alexander stone building - Structural elements of a documentary - A lane search or partitioning the area into lanes - Damian clarke dentist ivanhoe - A guide to social return on investment - Summerland credit union term deposit rates - M cotteleer electronics supplies microcomputer circuitry to a company - Fort street girls high school - Can we feel the love tonight - Harrison family assessment model - 65-8-2 Short Paper - "The people of sand and slag" - Atomic spectra post lab answers - Types of speech events - The musical centerpiece of a carnatic performance segment is the - Thomas jefferson's letter to the danbury baptist association in 1802 - Paragraph - Project work operational - Thread 1 - Lat pulldown prime mover - Romans 15 1b 3a 5 7 13 - Warr company is considering a project - Issa sfn final exam answers - Is gd ctcsurvey - Teenage wasteland anne tyler character analysis