Search for question
Question

CSC212 Assignment 3 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 my Linked List myLinkedList.cpp And you need to run your program using the command line:/BlinkList nc ni m Where nc is the number of random characters added to the head of the character list, ni is the number of random integers appended to the tail of the integer list, and m is the number of elements displayed per line. In this program,you need to 1. Include necessary library headers as well as stdio.h and stdlib.h so you can call the atoi(char*) function to convert the command line arguments nc, ni and m in ASCII to integer values.Convert nc, ni and m from the command line.2.3.Create a random character list c list and add nc number of random characters to head. All characters added must be upper case letters. Display these letters, m elements per line.Create a random integer list i list and append ni number of random integers to tail. All random integers appended must be in the range [0, 511 ]. Display these integers, m integers per line.5. Display the linked character list and the linked integer list, m elements per line.4.// Student Name// Student ID// myLinkedList.cpp // include library headers and using namespace std here// declare and implement myNode template class here// declare and implement myList template class here// program entrance int main(int argc, char *argv[]) {// convert command line arguments here// create an empty linked character list and an empty linked integer list here// determine the number of items displayed per line here// set random seed here/l generate random characters, add them to the character list, and display them here, m characters per line I/ generate random integers, append them to the integer list, and display them here, m integers per line// display character list and integer list here, m elements per line return 0; }

Fig: 1

Fig: 2

Fig: 3

Fig: 4

Fig: 5