Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSC212 Assignment3 Student Name: Student ID: Given myNode class and myList class discussed in the course, complete the following program named myLinkedlist.cpp to create a

image text in transcribed
CSC212 Assignment3 Student Name: Student ID: Given myNode class and myList class discussed in the course, complete the following program named myLinkedlist.cpp to create a linked character list and a linked integer list and then display both lists. You need to compile your program using the command line: c++ -o myLinkedlist myLinkedlist.cpp Center And you need to run your program using the command line: myLinkedlist ne ni Center Where is the number of random characters added to the head of the character list, and n, is the number of random integers appended to the tail of the integer list. In this program, you need to 1. Include necessary library headers as well as stdio.h and stdlib.h so you can call the atol(char*) function to convert the command line arguments nc and ni in ASCII to integer values 2. Convert n, and n, from the command line 3. Create a random character list clist and add ne number of random characters to head. All characters added must be upper case letters. 4. Create a random integer listilist and append n number of random integers to tail. All random integers appended must be in the range (0, 511 ] 5. Display the linked character list and the linked integer list, eight elements per line Il myLinkedlist.cpp // Student Name // Student ID // include library headers and using namespace std here // declare and implement myNode template class here // declare and implement myList template class here Il program entrance int main(int argc, char *argv[] { Il convert command line arguments here Il create an empty linked character list and an empty linked integer list here Il determine the number of items displayed per line here Il set random seed here // generate random characters, add them to the character list, and display them here Il generate random integers, append them to the integer list, and display them here // display character list and integer list here return 0

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_2

Step: 3

blur-text-image_3

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

Database Systems For Advanced Applications 18th International Conference Dasfaa 2013 Wuhan China April 22 25 2013 Proceedings Part 2 Lncs 7826

Authors: Weiyi Meng ,Ling Feng ,Stephane Bressan ,Werner Winiwarter ,Wei Song

2013th Edition

3642374492, 978-3642374494

More Books

Students also viewed these Databases questions