C final project collegiate level - introduction to C
$30-250 USD
Pagado a la entrega
Final Project CS223 Fall 2015
Due : Tuesday, December 1 at the start of the class
Assignment objectives:
- Gain experience using strings, arrays, functions and their interactions
- Gain more experience using arrays (one/multi dimensional)
- Gain more experience using File Input/Output
- Gain more experience using modular programming (functions)
- Reinforce knowledge of previous programming topics
- Use of structure
- Continue to refine C programming skills by following the C coding standard
- Learn to apply "C" programming to problem solving
Problem Description:
Your spaceship is navigating an asteroid field; you are to design a system that will log and display the distance between your spaceship and the asteroids. Each asteroid has (x, y, z) position in space, where x, y, and z are the distances in kilometers (east-west, north-south, up-down) from your spaceship.
Your program will read a file [login to view URL] that represents the ID and location of each asteroid. The distance between your spaceship and each asteroid is calculated based on asteroid’s X, Y, Z position using the following formula.
√ X2 + Y2 + Z2
This program must be secure. The user must input their name and pin number, if both (name and pin) matches the list you have in a text file on the disk ([login to view URL]), than the user gets access to this program. The program should allow 3 tries for name and password entry, if unsuccessful after 3 tries the program should print a message to the user and terminate.
Program Input/ Requirements
• The name and the pin number of the user
• A file called [login to view URL] which contains names and pin numbers. Example below.
leia 12345
darth 23456
r2d2 34567
solo 45678
jabba 56789
yoda 67890
• Input to the program will be generated using random generator for X, Y, and Z coordinate. Random generator will generate numbers between 1 and 1000 (including 1 and 1000). This data will be stored in a text file called asteroid.txt. Assume the speed of asteroids is 25Km/Sec. There must be at least 10 asteroids’ data in the file. The text data file [login to view URL] has the following format: only the numbers and IDs are in the file not the heading (ID, X,Y,Z)
IDXYZ
A60020059
B99999915
C1001000555
D500202666
----
----
Program output / Requirements
1- Write the following data to a file called [login to view URL], after calculating the distance
A60020059(whatever the result is)
B99999915(whatever the result is)
C1001000555(whatever the result is)
D500202666
----- ---
2- Print an alarm message to screen with X, Y, and Z positions of asteroids within a distance of less than 750 km.
For the nearest asteroid, send an alarm message to the console followed by 7 beeps.
The alarm message could look like the following: only two digits after the decimal point.
Warning - Warning - Warning
Nearest asteroid B at ??, ??, ??: ?? km away
Time to impact ??? seconds
asteroid B at at ??, ??, ??: ?? km away
asteroid D at at ??, ??, ??: ?? km away
- - - - - - - - - - - - - - - -- - - - - - - - - - - - - -- - - - - -
- - - - - - - - - - - - - - - -- - - - - - - - - - - - - -- - - - - -
3- Display a bar chart (character) for distance of the asteroids.
Example (something like below):
A |****************************
B |*********************
C |*************************
D |*******
E |************
F |
|
|
0------|------|------|------|------|------|------|-------------------------------------------------
Scale appropriately
More requirements, In addition to our standards:
1. The [login to view URL] file can contain at least 10 names and pin numbers.
2. Your program should be able to process the minimum of 10 asteroids.
3. You must use a two dimensional array for the asteroids position data.
4. You must use structure to hold the data for name and ID number when you read the file [login to view URL]
5. The main function must do very little other than calling other functions and passing parameters to those functions.
6. Your program should be modularly designed with functions designed to do one task and one task well.
7. Use of pointers for arrays are encouraged
8. Do not use global variables. Pass data back and forth via parameters or as return values.
9. Make your functions as general as possible so that they can be called more than once if needed.
10. Document your main function as well as every function you write.
11. Use defined constants for ALL constants in your program.
General requirement
1- Following comments must be the first lines of your source code
/* -----------------------------------------------
Submitted By: <Your Name>
Homework Number: <whichever homework you are doing>
Credit to:
<Name or names>
Submitted On: <Date>
By submitting this program with my name,
I affirm that the creation and modification
of this program is primarily my own work.
------------------------------------------------ */
2- Next few line of your source code must be comments describing what this program is supposed to do.
3- The first output (display) must be your name
4- The source code file must include comments documenting the design.
5- Indentation and spacing should be used to make the program readable.
6- Throughout this class (including this program you are not permitted to use the following commands: continue, break, exit, or any library functions that perform similarly
Deliverables:
Delivery Requirements:
For this project you must submit a report that includes the following sections:
• Time log
• Describe the REQUIREMENT of this program (what does the customer want), in bulleted format.
• Design, block diagram of functions used.
• Function description
• Comment your implementation (your code)
• Develop at least five TEST SCRIPT to test your program
• Conclusion
No hard copy of the code is needed; submit the soft copy of your source code (the .c file) to blackboard
IMPORTANT: You must name your source code as below:
Yourusername_homeworknumber_cs223
Example: behif_h1_cs223
Nº del proyecto: #8923631
Sobre el proyecto
Adjudicado a:
I was a Instructor for C programming in my Graduate studies. I have designed such questions previously. I am a working professional in a corporate industry. I am confident that I will complete the project on time.
24 freelancers están ofertando un promedio de $107 por este trabajo
Hello Sir, I am C Programmer, I have seen the detail I can do this project for you if you will give me all the details, If you think my profile, reviews and completion rate worth giving a chance then contact me for fur Más
Hello I am C expert and interested in this project. I have reviewed your requirements and confident to handle this project perfectly. I also have a lot of experience in helping students with assignments so I w Más
Hi, I have strong background in C/C++ and experience in Programming. Let me help you. I am ready to start. Please send me a message so we can discuss.
Hi, I'm an Electrical / Computer Science Engineer, excellent in Mathematics and C programming. I can do this work for you.
Student of Computer Science in college. I have plenty experience in C programming and projects like this. Will start working right after you award me to assure you it will be complete before the due date.
Greetings! I'm professional C programmer and ready to deliver your project whenever you want. Cheers
I am very good at c programming and i studied c programming for a year in my software engineering degree and got 95 marks out 100 in c programming. I love programming and i am a good programmer. I have done man c langu Más
Hello, my name is Dimitris and I am a Computer Engineer from Greece. I studied at Aristotle University Of Thessaloniki. During my academic years I have completed various assignments in the following fields: -Paral Más
I have developed several final projects for my clients. I have experienced writing code and comments to it so as teachers would be happy to grade it with the highest score.