(Solution) An event can be described using a time stamp and a string. For example: "09:30 Dental appointment" is an example of an event that has an... > Snapessays.com


(Solution) An event can be described using a time stamp and a string. For example: "09:30 Dental appointment" is an example of an event that has an...


can you help me to do the c programming, i have attached the program description ....An

 

event

 

can be described using a tme sTamp and a sTring. For example: “09:30 DenTal appoinTmenT” is

 

an example of an evenT ThaT has an

 

hour

 

and a

 

minute

 

, as well as a shorT

 

descripTon

 

.

 

For simpliciTy leT’s assume all evenTs happen in The same day, so no need To mainTain a daTe. Also

 

assume ThaT The hours are beTween 0 and 23 inclusive, where The day sTarTs aT hour 0 (i.e. midnighT) and

 

2pm is 14, eTc. Assume also ThaT The minuTe is beTween 0 and 59 inclusive. Finally, assume ThaT The sTring

 

can hold up To 40 usable characTers.

 

±he requiremenT of This assignmenT is To:

 

1. CreaTe a

 

self-referenTal

 

sTrucTure de²niton called

 

event

 

in C ThaT conTains

 

hour

 

,

 

minute

 

and

 

descripTon

 

as described. DocumenT iT properly (DocumenT The sTrucTure de²niton sTatng iTs purpose,

 

and each member a³ribuTe). [10pTs; improper documenTaton minus up To 6pTs]

 

2. CreaTe an alias using

 

typedef

 

in C for evenT call iT

 

Event

 

. [2pTs]

 

3. In The ²le (global) scope, creaTe a

 

single dynamic event list pointers

 

To mainTain a dynamic lisT of

 

evenTs. Call your poinTers

 

ptrFirst

 

and

 

ptrLast

 

. Initally boTh poinTers are NULL indicatng iT is an empTy

 

lisT [4pTs]

 

Main functonaliTy:

 

WriTe a program ThaT can read The sequental TexT ²le

 

mylist.txt

 

, sorTs iTs conTenTs by tme in

 

chronological order, Then wriTe iT back, overwritng The ²le conTenTs wiTh The newly sorTed lisT. If Two

 

evenTs have The same tme, Then use The descripton To break The te.

 


Solution details:
STATUS
Answered
QUALITY
Approved
ANSWER RATING

This question was answered on: Sep 21, 2023

Solution~00021147638089.zip (25.37 KB)


This attachment is locked

Our expert Writers have done this assignment before, you can reorder for a fresh, original and plagiarism-free copy and it will be redone much faster (Deadline assured. Flexible pricing. TurnItIn Report provided)

Pay using PayPal (No PayPal account Required) or your credit card . All your purchases are securely protected by .
SiteLock

About this Question

STATUS

Answered

QUALITY

Approved

DATE ANSWERED

Sep 21, 2023

EXPERT

Tutor

ANSWER RATING

GET INSTANT HELP

We have top-notch tutors who can do your essay/homework for you at a reasonable cost and then you can simply use that essay as a template to build your own arguments.

You can also use these solutions:

  • ■ As a reference for in-depth understanding of the subject.
  • ■ As a source of ideas / reasoning for your own research (if properly referenced)
  • ■ For editing and paraphrasing.

This we believe is a better way of understanding a problem and makes use of the efficiency of time of the student.

Get Free Price Quote