Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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. Can also use #include and #include if needed.

The items are Frisbies consisting the Ultimate, Destroyer, and Putter

Here is the problem:

image text in transcribed

Here is the Algorithm, please make it look like very similar to the algorithm:

image text in transcribed

image text in transcribed

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. Can also use #include and #include if needed.

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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Conceptual Database Design An Entity Relationship Approach

Authors: Carol Batini, Stefano Ceri, Shamkant B. Navathe

1st Edition

0805302441, 978-0805302448

More Books

Students also viewed these Databases questions