0% found this document useful (0 votes)
49 views1 page

Assignment Computer Programming 2024

Uploaded by

ngthais04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
49 views1 page

Assignment Computer Programming 2024

Uploaded by

ngthais04
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 1

Computer Programming 2024

ASSIGNMENT
1. Project Description
It is required that you demonstrate everything you have learned during the course in this project. The code must be written
in C++ programming language, and 100% by you from scratch.

In this assignment, you will implement a new data structure in order to gain knowledge on computer programming in the
most fundamental level.

The data structure in this assignment is linked list. A linked list is constructed by a number of nodes; each node is the basic
component containing data and the connection to another node. In this way, knowing the first node of a linked list give you
the control of data in the whole linked list.

In this assignment, you are asked to create linked list to do some simple tasks regarding natural extremely big number.

Given the input as two big numbers which can be as large as 101000, you will use class and object to represent them as two
linked lists. You then are to implement functions to add two linked list (sum of two big number) and compare two linked list
(determine if one number is larger, smaller or equal to one another)
2. Requirements
a. Loading data from input as follow:
- The first line is the number of testcase
- In the following lines, each one is a test in the format:
[Big Number 1] [operator] [Big Number 2]
,which [Big Number 1] and [Big Number 2] are two big numbers, and [operator] can be ‘+’ for sum; ‘>’ ‘<’ ‘=’ for comparing.

The output is the results. Each line in the output are printed as respect to each one in the input. For comparing, the
output is ‘1’ for true and ‘0’ for false.

b. Your project must make use of all of the following: Classes and Objects, Functions, and STL

c. It is essential that you write easily readable, well-designed code.


3. Assessment
a.Working program and pass all the testcase: 60%.
b.Requirements all meet: 30%.
c.Beyond expectations: 10% or more.
4. Deadlines
Within the week of 25th December 2024

Sample input Sample output


4 8320
8020 + 300 1
2024 > 2023 0
2025 < 2024 1
2024 = 2024

You might also like