当前位置:天才代写 > 作业代写,留学生作业代写-北美、澳洲、英国等靠谱代写 > ESE 124代写 exercise代写 C语言代写

ESE 124代写 exercise代写 C语言代写

2021-08-07 11:36 星期六 所属: 作业代写,留学生作业代写-北美、澳洲、英国等靠谱代写 浏览:590

ESE 124代写

Final Exam: ESE 124

Each exercise is 100 points.

ESE 124代写 1)Use a Finite State Machine (FSM) to solve the following problem:You are asked to design the following 4-number sequence detector.

1) ESE 124代写

Use a Finite State Machine (FSM) to solve the following problem:

You are asked to design the following 4-number sequence detector.

A sequence detector receives integers at its input, one integer at a time. Inputs are either integer 0 or integer 1.

For each 4 integers that are input, the FSM needs to see whether they match one of two given sequences: 1 0 1 0, or 0 1 1 0.

The FSM outputs are 1 (integer) if either one of the two sequences was found. Otherwise, the FSM outputs a 0 (integer).

Overlapping sequences are accepted, e.g., 1 0 1 0 1 0 will produce the output 0 0 0 1 0 1. The integers are input one at a time, so we can’t see all 4 integers at once.

2)  ESE 124代写

Write the following program:

Use struct data type to store information about a neighborhood.

Every house in the neighborhood is characterized by the following information: 1) Street name (string up to 20 characters); 2) the number of the house as used in the address (integer); 3) Listed price (float); and 4) the number of months since the house was purchased by the current owner (integer).

The information about the individual houses is read from an input file.

Store the information about all houses in an array, and then display the content of the array.

Order the houses in the decreasing order of their listed prices, and then display the houses in this order.

 

ESE 124代写
ESE 124代写

 

A house is more likely to be sold if it has a lower listed price and also a higher number of years since it was purchased by the current owner. The formula describing the likelihood of a house to be sold is the following: Likelihood = 0.5 x 1 / Listed price (in tens of thousands) + 0.5 x number of months since purchase. Order the houses in decreasing order of their likelihood of being sold by the current owner.

Assume that a buyer has $Y dollars for purchasing houses in the neighborhood. Devise an algorithm, so that the buyer focuses on purchasing the houses that are most likely to be sold, and which he can buy with the $Y dollars that he has. Your program should list the identified houses.

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

3) ESE 124代写

Use a stack to order a sequence of integer numbers in decreasing order of their values. The integer values are read one by one from the keyboard. Numbers are read until the user inputs the value 0. Then, the input values are displayed in decreasing order.

 

0

 

 

其他代写:data代写 code代写 CS代写 Data Analysis代写 analysis代写 homework代写 algorithm代写 作业加急 北美代写 澳大利亚代写 essay代写 assignment代写 英国代写 作业代写 report代写 paper代写

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

 

天才代写-代写联系方式