Search the whole station

编程基础代写 ESE 124代写 Programming Fundamentals代写

ESE 124 (Programming Fundamentals)

Final exam review

编程基础代写 A.Sample exam questions 1) Write the following program: Use struct data type to store information about courses. Every course is characterized by

A.Sample exam questions    编程基础代写


Write the following program: Use struct data type to store information about courses. Every course is characterized by the following information: 1) Title (up to 20 characters); 2) Number of credits (integer); 3) Instructor (up to 15 characters); and 4) the suggested order of the course in the course sequence of the major (integer; Two courses can have the same suggested order).

– The information about individual courses is read from an input file.

– Store the information about all courses in an array and then display the content of the array.

– Order the courses in the alphabetical order of their titles and then display all the courses.

– Order the courses in the suggested order of the courses, such that one course with a lower suggested order is always before a course with a higher suggested order. Assuming that a student cannot take more than X credits per year (the value X is read from the keyboard), display what courses a student should take every year, so that courses are following the suggested order and the number of credits per year does not exceed the limit X. 编程基础代写

Note: Extra credit is given if dynamic data structures are used.


Use a Finite State Machine (FSM) to solve the following problem: A sequence detector receives integers at its input, one integer at a time. The FSM outputs a 1 (integer) only if among the last three inputs exactly two were odd numbers. Otherwise, the FSM outputs a 0 (integer).


Use a stack to order a sequence of floating point numbers in increasing order of their values. The values are read one by one from the keyboard. Every new number is saved in the stack. Numbers are read until the user enters ‘#’. Then, the values stored in the stack are displayed in the desired order.

B. More practice questions 编程基础代写

1.Problems related to FSM

i. Solve the FSM examples presented at the following link:

ii. Solve the FSM examples presented at the following link:

iii. Solve the FSM examples at the following link:

2.Problems related to stacks

i. We have two different kinds of Ferry Boats and Cars that want to get on board of them. One Boat will work like a Stack and one like a Queue. The Cars don’t choose in which Ferry Boat they want to go in (the text file remains the same tho!). The Cars will first go into Boat S, move into Boat Q and then finish their Sailing! 编程基础代写

Our Boats will contain the following:

  • the capacity (to check if the Boats are full)
  • the sailing number (to write into files)
  • the number of elements inserted
  • a Top Node Pointer for the Stack and a Front and Rear Node Pointer for the Queue

 The Cars will be a part of a text file called cars.txt (we will get the name as input) and this file will contain the car_id and the boat preference (that doesn’t matter here) like this:


ZZA9896 S

MIN5689 Q

NHI9098 S

KNM4545 Q

IPO8987 Q 

The program will: 编程基础代写
  1. get the capacity of each boat and the file name as user input
  2. initialize the boats
  3. start reading from the file and then manage the sailings
  4. the cars will first get into Boat S, be written into file when S is full, moved into Q where it fills up, until S is empty and gets written into a file as well when it gets full (can be more times then S, when for example S has capacity of 2 and Q of 1)
  5. the reading loop will stop when there are no more cars in the file
  6. then we will check if there are some remainders in the Boats to write them in a “sailing” file aswell

 The Stack-Queue Functions need to be Functions that are called from the main function! 

ii. Solve the stack related exercises at the link:

3.Problems related to dynamic memory, structures and sorting

  1. Solve the exercises at the following link:
  2. Solve the exercises at the end of the notes from following link:


更多代写:CS澳洲网课代考  美国托福代考  英国经济学代上网课  paper论文写作代写  北美英文PPT模板代写  代写学术论文结构

合作平台:essay代写 论文代写 写手招聘 英国留学生代写

The prev: The next:

Related recommendations