In Progress

the list program

List

Looking at the program “Salesperson’s list”, create another

program that will do the following:

1. Ask user to input 2 different lists of salespersons.

2. Concatenate two lists into one.

In order to do that you will have to create second list

(define another pointer to the head and another pointer to the current), and

write function that will add one list to the other. This function has to

redefine pointer of the last element of the first list, so that it will point

to the first element of the second list.

Print new list in the form of the report.

Salesperson’s list

include

<iostream>

#

include <string>

using

namespace std;

struct

SalesPerson {

SalesPerson *next;

string name;

int level;

float comission;

float amount;

void Print()

{

[url removed, login to view](10);

cout << name;

[url removed, login to view](20);

cout << level;

[url removed, login to view](20);

cout << amount;

[url removed, login to view](20);

cout << comission <<

endl << endl;

}

};

struct SalesPerson* Head = NULL;

struct SalesPerson* Current =

NULL;

void Add(struct SalesPerson);

void

main()

{

struct SalesPerson S;

char answer[10] =

"Yes";

do

{

cout << "\nEnter

sales person name: ";

cin >> [url removed, login to view];

cout << "\nEnter

sales amount: ";

cin >> [url removed, login to view];

cout << "\nEnter

level of comisiions: ";

cin >> [url removed, login to view];

cout << endl;

Add(S);

cout << "Do you want

to enter another? (Yes/No): ";

cin >> answer;

} while (strcmp(answer,

"No") != 0);

[url removed, login to view](10);

cout << "Name";

[url removed, login to view](20);

cout << "Comission

level";

[url removed, login to view](20);

cout << "Amount of sales";

[url removed, login to view](20);

cout <<

"Comission" << endl << endl;

for(Current = Head; Current

-> next != NULL; Current = Current -> next)

Current ->

Print();

Current -> Print();

}

void

Add(struct SalesPerson a)

{

if (Current == NULL)

{

Current = new(SalesPerson);

Head = Current;

Current ->

next = NULL;

}

else

{

Current ->

next = new(SalesPerson);

Current =

Current -> next;

Current ->

next = NULL;

}

Current -> name = [url removed, login to view];

Current -> level = [url removed, login to view];

Current -> amount = [url removed, login to view];

if([url removed, login to view] == 1) Current ->

comission = [url removed, login to view] * 0.06;

else Current

-> comission = [url removed, login to view] * 0.08;

}

Skills: C++ Programming

See more: struct c programming, string the, string cplusplus, std list c, std list, programming head, pointer programming, head first programming, float programming, float c programming, c programming struct, c programming strcmp, c programming pointer, c programming char, cplusplus struct, cplusplus string, char in c programming, char c programming, looking for salesperson, the other, endl, Concatenate, string float, head programming, program using pointer

About the Employer:
( 6 reviews ) fullerton, United States

Project ID: #5153090

Awarded to:

vano101

Hello. This assignment looks quite easy for me........................................................

$15 USD in 2 days
(149 Reviews)
5.8

23 freelancers are bidding on average $18 for this job

szymszteinsl

Hi! I am professional C/C++/C#/Java programmer. I can do this project with highest quality. Best regards, Szymszteinsl

$40 USD in 3 days
(10 Reviews)
5.8
urmate

Contact me for an efficient, perfect, well documented development of your project according to 100% accuracy and requirements, with dedicated support. Thanks

$15 USD in 1 day
(19 Reviews)
3.8
dobreiiita

Hi, Lets start right away will complete within 2 hours. Please communicate to discuss further. Thank You

$19 USD in 1 day
(111 Reviews)
5.9
Venky117

A proposal has not yet been provided

$14 USD in 0 days
(9 Reviews)
3.7
crazynightwalker

Hi, With 10 years of professional programming experience with C++ and various other languages, I can implement your program which asks for 2 lists and then concatenates them. I am ready to begin now! Thanks

$30 USD in 1 day
(2 Reviews)
2.3
theshadowx

Hi, I would be happy to help you, I have a master degree in electronics and computer science engineering. I've been programing in c++ for many years, and your work is a piece of cake for me. pm so we can discus More

$30 USD in 3 days
(1 Review)
1.3
drankavw

Hello, I can provide the code in no time. I love to code in C++, so I put my heart in my job. I hope you choose me. regards, Eloi

$14 USD in 0 days
(1 Review)
0.8
thangqn

Hello, sir. I would love to work for you. I have 5 years experience in C/C++ programming language. I can help you do this project. Thank you so much for your attention.

$15 USD in 1 day
(1 Review)
1.1
yulyan46

I worked before with something similar and I guarantee that I will complete your task without any flaws.

$25 USD in 1 day
(0 Reviews)
0.0
vijithsquadz

Hi, Thank you for this wonderful opportunity. I have excellent experience in Software Development . I believe my abilities would be perfect for your venture. I can finish this job within the necessary time frame. More

$25 USD in 1 day
(0 Reviews)
0.0
sathyananthan

My area of interest is Data Structures and I have 3 years of experience in data structure programming in C and C++. I have already done similar coding like this . Can complete the project within the specified period as More

$20 USD in 3 days
(0 Reviews)
0.0
cosmin192

I have solved the problem and i have the program. I can send you the source code if you like. Have a nice day!

$10 USD in 1 day
(0 Reviews)
0.0
jindal89

Hi, I have 5 years of c++ programming experience. I am good in algorithms and data structures too. Thanks

$25 USD in 3 days
(0 Reviews)
0.0
anujbhati

A proposal has not yet been provided

$12 USD in 1 day
(0 Reviews)
0.0
mohitaswal

Hi, I am an experienced C/c++ developer. I have seen your requirement and i am ready to do this project. I will provide you the executable first, you can check it and then need to pay. Please assign me the projec More

$12 USD in 0 days
(0 Reviews)
0.0
projectdelta6

You are using Linked lists, I I'm very adept in the use of Linked lists in C++. please email me if you have and questions. thank you for your consideration.

$15 USD in 3 days
(0 Reviews)
0.0
eprakashbehera

A proposal has not yet been provided

$13 USD in 1 day
(0 Reviews)
0.0
zabolotniipavel

HI, I have a great experience in c++ and data structures. So, you can hire me and you don't spend your money and time for nothing. Yesterday I finished a project, connected with a creating a game. You can ask my emplo More

$10 USD in 1 day
(0 Reviews)
0.0
alextarna

Hi , I have experience with C++ and Lists in C++ , so I can do it for you , please contact me and let's talk about. I will be glad to help you . Alex . You have two warnings in the code... at the end of the progra More

$15 USD in 1 day
(0 Reviews)
0.0
ghsoftlab

A proposal has not yet been provided

$10 USD in 5 days
(0 Reviews)
0.0