Find Jobs
Hire Freelancers

Telephone Directory in c++ implementation

$30-250 USD

ถูกยกเลิก
โพสต์ มากกว่า 12 ปีที่ผ่านมา

$30-250 USD

ชำระเงินเมื่อส่งงาน
In this assignment you are required to individually (each student on their own) develop a program that allows creating, viewing, and storing information about telephone customers. You will need to author two classes – Customer and Pensioner. Pensioner should be a subclass of Customer. These classes should be in their own files with separate header files. Details are below. Create a third class called Manager. The manager file can contain the main function. The Manager class should contain member functions that read a text file, called [login to view URL], line by line, performing appropriate actions at each line, until the end of the file is reached. You should make no assumptions about the length of the file. Each line of the file has the following format: O Jimbo Jones 43215678 56 O Gladys Skinner 7628372 56 P P23435 D P The action for each line will depend upon the first character (the directive). If the first character is “O” then there are two possibilities. The customer is an ordinary customer. In this case the fields are firstName, lastName, telephoneNo and numberOfCalls. A Customer object should be created and initialised with the values from this line. The customer is a pensioner. In this case, we have a field P which purely signifies that we are dealing with a pensioner, followed by the pension number. A Pensioner object should be created with the four Customer fields and also the pension number. In either case, the resulting object should be added to an array of ten Customer pointers called ‘store’. This array should be a private data member of the Manager class. If the first character is “D” then the Customer or Pensioner object most recently added to the store should be deleted. The way that the store should be handled is to create a second private data member called ‘top’ which is originally set to zero. Each time you add a Customer object you add it at the point signified by top. Top is then incremented. Thus, the first Customer is put in position zero and top is incremented to 1. When we delete a Customer, we use top to determine which object to remove. If the first character is “P” then all of the elements in the array should be printed to a file (called [login to view URL]). The output should be appended to the file – not overwrite what is already there. The deleted elements should, of course, not figure in this output. The output should contain all of the information for the Customer. Furthermore, a telephone charge should be calculated as the number of calls at 45c each. If the Customer is a pensioner then the pension number should be output and a discount of 10% provided. Both the discount and the new price should be displayed. Note: that the methods for calculating the charge should be defined in the Customer class and overridden in the Pensioner class. Polymorphism should be used rather than any attempt to explicitly determine what type of object is being dealt with. If the line contains only white space, it should be ignored and the program should proceed to the next line. If the directive contains any character other than those above an error message should be give and the program should continue. The output to the file should be provided in both of two ways: A method called print should be provided in both the Customer and Pensioner class The
รหัสโปรเจกต์: 1399915

เกี่ยวกับโปรเจกต์

20 ข้อเสนอ
โปรเจกต์ระยะไกล
ใช้งานอยู่ 12 ปีที่ผ่านมา

กำลังมองหาการสร้างรายได้ใช่ไหม?

ประโยชน์ของการประมูลกับ Freelancer

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
20 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $84 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
Hi, I am confident to handle your project. Thanks
$50 USD ใน 1 วัน
4.8 (289 รีวิว)
7.0
7.0
รูปอวาตาร์ของผู้ใช้
Hi, I am a graduate in CS. I have done lots of similar projects both in academic courses and freelancer.com. I assure you of simple,clean,efficient code with proper comment and documentation. Ready to start now. Waiting for reply, thanks
$50 USD ใน 1 วัน
4.4 (24 รีวิว)
4.9
4.9
รูปอวาตาร์ของผู้ใช้
I have 6 years of experience programming in C++. I can do this project for you quickly and exactly the way required. I will also comment the code well.
$50 USD ใน 1 วัน
5.0 (3 รีวิว)
3.5
3.5
รูปอวาตาร์ของผู้ใช้
Please check PM for more details.
$225 USD ใน 7 วัน
5.0 (4 รีวิว)
3.3
3.3
รูปอวาตาร์ของผู้ใช้
Hello! I am confident I can turn your project around in less than one day. Please see your PMs for more info...
$40 USD ใน 1 วัน
5.0 (1 รีวิว)
1.0
1.0
รูปอวาตาร์ของผู้ใช้
i have excellent experience in C++ programming so i can finish what you want
$40 USD ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
BE,MS embedded systems holder .i can handle ur project and it requires structures ,classes and objects to develop ur project.
$100 USD ใน 7 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
c++ expert with all data structures and object oriented concepts thanks.....
$88 USD ใน 5 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Please check PMB. Thanks.
$75 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
We can do this exactly required Please check PMB
$80 USD ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
i will feel good to work on this project
$40 USD ใน 2 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Hi, I am a professional C++ software developer with more than 5 years of expirience. I did similar small projects durring my university time. I am used to produce high quality software and hope to get this project!
$100 USD ใน 4 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
I can do this. Thanks
$100 USD ใน 4 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Well being an engineer its not that difficult for me to do this kind of job in 3/4 days. I have skills of c/c++ languages. Being a professional commitment and quality of work is my preference. To assure you the quality of work i will divide the project into modules and send them to client to get proper feed back and alteration if needed so
$95 USD ใน 4 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Hi, Looking at the skills required, do you need this to be done in C++ or PHP? Either way, I have both skills to complete the project.
$45 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Check PMB please.
$250 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Respected Client, I can do this project in lowest cost and better way. We can still negotiate this price. Please contact me for this.
$35 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
hi, i am from IIT delhi. I can dot his work. u can consider me. want more information u welcome. thanks
$100 USD ใน 2 วัน
0.0 (1 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
Hello, It seems some info is missing in your post, as last sentence is not complete. We can complete this project in no more 3 hours, for sure. Thanks.
$45 USD ใน 1 วัน
0.0 (0 รีวิว)
0.0
0.0

เกี่ยวกับลูกค้า

ปักธงของ INDIA
Noida, India
0.0
0
เป็นสมาชิกตั้งแต่ ม.ค. 17, 2012

การยืนยันลูกค้า

งานอื่นๆ จากลูกค้ารายนี้

Telephone Directory in c++
$30-250 USD
ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ Freelancer Thailand / ภาษาไทย ช่วยเหลือและสนับสนุน FreelancerประเภทโปรเจคการประกวดFreelancerองค์กรแพ็กเกจสมาชิกโครงการ Freelancer ชั้นแนวหน้าการจัดการโปรเจคงานในพื้นที่Photo Anywhereหน้าจัดแสดงผลงานAPI สำหรับนักพัฒนาได้รับการยืนยันDesktop App เกี่ยวกับเกี่ยวกับเราวิธีใช้งานความปลอดภัยนักลงทุนแผนผังเว็บไซต์เรื่องราวข่าวออกสื่อทีมรางวัลข่าวประชาสัมพันธ์ร่วมงานกับเรา ข้อกำหนดนโยบายความเป็นส่วนตัวข้อกำหนดและเงื่อนไขนโยบายลิขสิทธิ์ข้อพึงปฏิบัติค่าธรรมเนียมและค่าบริการหุ้นส่วนEscrow.comLoadshiftWarrior Forum แอปโลโก้ Apple App Store โลโก้ Google Play
ไม่สามารถคัดลอกไปยังคลิปบอร์ดได้ โปรดลองอีกครั้งหลังปรับเปลี่ยนการอนุญาต
คัดลอกไปยังคลิปบอร์ดแล้ว
ผู้ใช้ที่ลงทะเบียน งานที่มีการโพสต์ทั้งหมด
Freelancer ® is a registered Trademark of Freelancer Technology Pty Limited (ACN 142 189 759)
Copyright © 2024 Freelancer Technology Pty Limited (ACN 142 189 759)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง