Find Jobs
Hire Freelancers

We have to implement a stack using an array that is implemented dynamically at run time. The program should be able to work so that it can use any data type

$25-30 USD

ที่ทำเสร็จแล้ว
โพสต์ มากกว่า 22 ปีที่ผ่านมา

$25-30 USD

ชำระเงินเมื่อส่งงาน
You are to implement a stack using arrays. The array should be implemented dynamically at run time. The concept of dynamic arrays enables the programmer to implement algorithms independently of the length of the arrays used. The index ranges of dynamic arrays are not to be defined until run-time. Stacks have various applications like evaluation of expressions, reversing a string, etc. In each of these applications,there can be a situation when you don't know the number of elements that need to be pushed into the stack. In such cases, the array needs to be created dynamically. You are to push and pop items into a stack. Then, traverse and finally delete the stack. Your ADT should implement the stack using dynamic arrays, and it should work for any datatype even if it is tested using a particular [login to view URL] data file may contain only character strings to be inserted in the stack, but define your ADT such that it works for items of any data type. You will be given sentences, and will be required to push each character of the sentence into a stack. The number of characters in the string will be known at run-time, when the data is read from the data file. The first thing you need to do is to create an empty stack. Then push the items into the stack, which is to be implemented as a dynamic array. The required memory block will have to be allocated at run-time, using malloc. A push operation would mean to increase the array size and add items at the top of the stack. Popping an item would mean to physically delete the item from the stack, and decrease the size of the array. Finally, delete the stack and free the memory block that was allocated for the stack. The data file that was given to us is as follows: push this is thefirstline pop 4 push this is the nextline pop 21 print push good luck push this is the last assignment for the semester pop 15 print delete_stack ## Deliverables Complete and fully-functional working program(s) in executable form as well as complete source code of all work done. Complete copyrights to all work purchased. ## Deadline information This must be completed bye Saturday December 1 at midgnight.
รหัสโปรเจกต์: 2832890

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

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

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

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

กำหนดงบประมาณและกรอบเวลาของคุณ
รับเงินจากการงานของคุณ
อธิบายข้อเสนอของคุณในภาพรวม
ลงทะเบียนและเสนอราคาฟรี
หมอบหมายให้:
รูปอวาตาร์ของผู้ใช้
See private message.
$25.50 USD ใน 14 วัน
4.6 (66 รีวิว)
5.1
5.1
11 ฟรีแลนซ์กำลังเสนอราคาโดยเฉลี่ย $19 USD สำหรับงานนี้
รูปอวาตาร์ของผู้ใช้
See private message.
$14.45 USD ใน 14 วัน
4.9 (139 รีวิว)
5.6
5.6
รูปอวาตาร์ของผู้ใช้
See private message.
$12.75 USD ใน 14 วัน
5.0 (7 รีวิว)
4.4
4.4
รูปอวาตาร์ของผู้ใช้
See private message.
$25.50 USD ใน 14 วัน
4.6 (60 รีวิว)
4.5
4.5
รูปอวาตาร์ของผู้ใช้
See private message.
$12.75 USD ใน 14 วัน
4.9 (3 รีวิว)
4.3
4.3
รูปอวาตาร์ของผู้ใช้
See private message.
$25.50 USD ใน 14 วัน
4.8 (21 รีวิว)
3.2
3.2
รูปอวาตาร์ของผู้ใช้
See private message.
$21.25 USD ใน 14 วัน
4.8 (16 รีวิว)
3.1
3.1
รูปอวาตาร์ของผู้ใช้
See private message.
$25.50 USD ใน 14 วัน
4.2 (12 รีวิว)
2.1
2.1
รูปอวาตาร์ของผู้ใช้
See private message.
$17 USD ใน 14 วัน
5.0 (4 รีวิว)
0.4
0.4
รูปอวาตาร์ของผู้ใช้
See private message.
$17 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0
รูปอวาตาร์ของผู้ใช้
See private message.
$12.75 USD ใน 14 วัน
0.0 (0 รีวิว)
0.0
0.0

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

ปักธงของ UNITED STATES
United States
0.0
0
เป็นสมาชิกตั้งแต่ พ.ย. 29, 2001

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

ขอบคุณ! เราได้ส่งลิงก์สำหรับเครดิตฟรีให้คุณทางอีเมลแล้ว
เกิดข้อผิดพลาดขณะส่งอีเมลของคุณ กรุณาลองอีกครั้ง
โลโก้ 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)
กำลังโหลดตัวอย่าง
ได้รับอนุญาตสำหรับตำแหน่งทางภูมิศาสตร์
เซสชั่นการเข้าสู่ระบบของคุณหมดอายุและคุณได้ออกจากระบบแล้ว กรุณาเข้าสู่ระบบอีกครั้ง