Выполнено

Write some Software

Этот проект был успешно выполнен wangbeizou за $40 USD за день.

Получить бесплатно ценовые предложения для подобного проекта
Работодатель работает
Бюджет проекта
$10 - $30 USD
Выполнено за
1 день
Всего заявок
4
Описание проекта

Write [url removed, login to view] to track your own college course history and plans. Write it as a menu-driven console program that has these user options:

MENU

A Add a course

E rEmove a course

S Sort courses

L List courses

Q Quit

...your choice:

For each course, your program should track at least the name of the course (like Comsc-165), your grade received (or some other symbol for in-progress or planned), the year taken (or to be taken), and the number of units (whole number or floating point, your choice). You may add as many other attributes as you wish.

Requirements

Use a singly-linked list based "queue" of struct-based nodes with C++ string attribute(s).

Convert all input strings to uppercase.

Include one sorting option, first by year (hi-to-lo), then course (A-Z) as a "tie breaker".

Format and align your output as a nicely-spaced table of no more than 72 characters wide, with one course per line and no skipped lines between courses. Do include column headings.

Include serialization to a text file named [url removed, login to view]

Do not include editing options.

You decide whether to include sequence numbers for listing and removing courses, or to use matching of the course name by its name.

HINT: Here's the logic for "tie breaking" in nested for-loop sorting of nodes:

// without tie-breaking, lo-to-hi

if (q->firstAttribute < p->firstAttribute) swap

// with tie-breaking, lo-to-hi

if (q->firstAttribute < p->firstAttribute) swap

if (q->firstAttribute > p->firstAttribute) continue

if (q->secondAttribute < p->secondAttribute) swap

Of course, reverse p and q for hi-to-lo sorting.

Хотите заработать немного денег?

  • Укажите свой бюджет и срок
  • Опишите свое предложение
  • Получите оплату за свою работу

Нанять фрилансеров, которые также подали заявку в этот проект

    • Forbes
    • The New York Times
    • Time
    • Wall Street Journal
    • Times Online