Question
Please help me with this C program, please make it as simple as possible because I'm in programming 1 and I just started along with
Please help me with this C program, please make it as simple as possible because I'm in programming 1 and I just started along with using lots of comments.
Please don't use count or cin statements and please use #include
The items are Frisbies consisting the Ultimate, Destroyer, and Putter
Here is the problem:
Here is the Algorithm, please make it look like very similar to the algorithm:
Please make it as simple as possible because I'm in programming 1 and I just started along with using lots of comments.
Please don't use count or cin statements and please use #include
The items are Frisbies consisting the Ultimate, Destroyer, and Putter
Write a C program that asks the user for information about a particular collection of things that they own (for example: CDs, clothes, books, videos). For each item in the collection, ask for the name of the item, one other characteristics of the item, and the money value of the item. Store the information in a linked list of structures using the structure below (replace the xxx's with the name of your structure; replace yyy and zzz too). After getting all the data in the linked list, print out the information in a table format. At the end, print the total number of items and the sum of the values of the items. struct xxxs { char xxx [50]; /* object type name */ yyy zzz; /* your own characteristics */ double value; /* dollar value of xxx */ struct xxxs *next; /* link the list */ struct xxxs *start, *current, *last; Be sure to give the user specific instructions. Ask the user to type in items until they type "done or DONE or Done. add Frisbee current = new space in memory Frisbee field number = name current next = NULL if head = NULL head = current else last >next = current last = current print list current=head print All the numbers you entered are while current not NULL print element field num, spaces count + num of items and add values current = current next main print this program creates and prints a list of integers head = NULL get name while name not done or Done add_Frisbee get name Data Structure: int input = -1; head Frisbeet frisbee struct Name Ultimate Frisbee Cost $20 None Dese. CIST NEXT hame Description Played with a football concept Frisbeel.next description cost next Frisbee2 Cost $25 Name Description Destroyer Used to Frisbee pitch off in golf terms Frisbee2.next Where ) Cost Frisbee3 Name Putter Frisbee $30 5 Description Used to putt off in golf terms NULL is hand supposed TotNT Guts Golf Double doc court MTA Write a C program that asks the user for information about a particular collection of things that they own (for example: CDs, clothes, books, videos). For each item in the collection, ask for the name of the item, one other characteristics of the item, and the money value of the item. Store the information in a linked list of structures using the structure below (replace the xxx's with the name of your structure; replace yyy and zzz too). After getting all the data in the linked list, print out the information in a table format. At the end, print the total number of items and the sum of the values of the items. struct xxxs { char xxx [50]; /* object type name */ yyy zzz; /* your own characteristics */ double value; /* dollar value of xxx */ struct xxxs *next; /* link the list */ struct xxxs *start, *current, *last; Be sure to give the user specific instructions. Ask the user to type in items until they type "done or DONE or Done. add Frisbee current = new space in memory Frisbee field number = name current next = NULL if head = NULL head = current else last >next = current last = current print list current=head print All the numbers you entered are while current not NULL print element field num, spaces count + num of items and add values current = current next main print this program creates and prints a list of integers head = NULL get name while name not done or Done add_Frisbee get name Data Structure: int input = -1; head Frisbeet frisbee struct Name Ultimate Frisbee Cost $20 None Dese. CIST NEXT hame Description Played with a football concept Frisbeel.next description cost next Frisbee2 Cost $25 Name Description Destroyer Used to Frisbee pitch off in golf terms Frisbee2.next Where ) Cost Frisbee3 Name Putter Frisbee $30 5 Description Used to putt off in golf terms NULL is hand supposed TotNT Guts Golf Double doc court MTAStep by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started