加拿大程序辅导

留学生程序辅导,辅导编程,解决各类编程与作业, CS Assignment, 辅导各类CS作业

c语言程序代写: list, tree, binary search tree


Assignment 9 Problem 0. [2+2=4 Marks correctness]

Problem 0 is a “warm-up” question. You are allowed to collaborate with your fellow classmates and discuss the solution on piazza.

a) Complete the C program mylist.c to print the following: 10 9 8 7 6 5 4 3 2 1

b) Complete the C program mytree.c to print the following: 20 35 78

Note: No helper functions are allowed (for both parts a & b). You are supposed to build the list (in part a) or the BST tree (in part b) node by node. You are NOT allowed to change any implementation provided in mylist.c nor in mytree.c


Assignment 9 Problem 1. [36 Marks Correctness. File: list.c]

Goal: to practice implementing linked list in C

Write the C implementation list.c for the interface

c++ rot13 xor cipher

You have been hired by XYZ Stealth Incorporated to design their next generation of data encryption software, and in particular, your task is to create a C++ class that supports the ability to perform 2 common data encryption techniques:

The class will support the following capabilities:

  • initialize the class with a block of data – a) string b) an arbitrary array of data (supplied via void *) and a length
  • a method to load data from disk (filename supplied)
  • a method to select encryption technique
  • a method to set the key for the XOR Cipher
  • a method to perform encryption
  • a method to save manipulated data to disk (filename supplied)
  • a method to decrypt (study the 2 wiki descriptions carefully, a