Search the whole station

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

528

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 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.

2)

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).

3)

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:

http://courses.ics.hawaii.edu/ReviewICS241/morea/computation-models/FiniteStateMachines-QA.pdf

iii. Solve the FSM examples at the following link:

https://www.ics.uci.edu/~irani/f13-6B/FiniteAutomataRosen.pdf

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:

cars.txt:

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:

http://www.cim.mcgill.ca/~langer/250/E5-stack-queue.pdf

3.Problems related to dynamic memory, structures and sorting

1. Solve the exercises at the following link: http://www.cs.princeton.edu/courses/archive/fall02/cos126/exercises/structs.html
2. Solve the exercises at the end of the notes from following link:

https://www.cs.swarthmore.edu/~newhall/cs31/resources/C-structs_pointers.php

Related recommendations

• programming程序代写-完不成程序作业该怎么办？可以找

306

完不成程序作业该怎么办？可以找programming代写老师帮忙吗？ programming程序代写 相信很多在国外留学的同学，对国外的专业考试和作业有着莫名的紧张感和无力感，因为对当地文化不是很了解。和老师同学沟通...

View details
• 留学生编程代写-留学生为什么找编程代写？有什么原因？

502

留学生为什么找编程代写？有什么原因？ 留学生编程代写 如今的时代时科技的时代，也是互联网发展的时代。这个时代的发展都是以计算机和网络为依托和基础的。无论是国内外计算机行业的社会地位、职位的晋...

View details
• 机器学习课业代写 机器学习代写 编程作业代写 编程代码代写

117

Properties and Applications of Binary Hypothesis Testing Detection, Estimation, and Learning 机器学习课业代写 1 How to submit your solution • The submission deadline is 23:59 on February 4,...

View details
• 传输协议代写 EECE 7374代写 编程作业代写 C++代写

452

EECE 7374 Programming Assignment 2 Reliable Transport Protocols 传输协议代写 You should work on this assignment individually or in a team of two members. One submission per team. 1.Object...

View details
1