Шукаєте відповіді та рішення тестів для In24-S1-CS1033 - Programming Fundamentals? Перегляньте нашу велику колекцію перевірених відповідей для In24-S1-CS1033 - Programming Fundamentals в online.uom.lk.
Отримайте миттєвий доступ до точних відповідей та детальних пояснень для питань вашого курсу. Наша платформа, створена спільнотою, допомагає студентам досягати успіху!
Which of the following Register is typically used to store the status of the last ALU operation?
CPU “ALPHA” requires an average of 5 clock cycles to complete one instruction and runs at a 1 GHz clock. The CPU “BETA” requires 20 clock cycles on average to complete one instruction and runs at a 2 GHz clock. Both CPUs have the same instruction set. Which of the following statements are true when both CPU executes the same program.
The ALU of a Central Processing Unit is:
Embedded computers are:
Which of the following is NOT a CPU register?
Please submit the flowchart diagram that illustrates the algorithm of your program here.
Plot a line graph for acceleration against time for each model. Plot the lines for all three models in the same graph. Then submit your plotted graphs.
Example graph:
Note: You must plot and submit the graphs. If you do not submit, then the submission will be incomplete and will not be accepted.
EcoMotion Autos is a car manufacturing company. They are conducting research regarding their 3 brand new car models that are going to be released next month. You have been requested to assist them by helping them to analyze the data taken during the test drive.
You are provided with three input files model1.txt, model2.txt and model3.txt containing the speed measured at the end of each time interval.
Example input files :
model1.txt | model2.txt | model3.txt |
---|---|---|
0 0100 1200 5300 13400 29500 57600 68700 78800 89900 991000 111 | 0 0100 1200 7300 12400 31500 63600 74700 89800 98900 1071000 120 | 0 0100 5200 15300 21400 39500 55600 69700 81800 101900 1131000 122 |
Note: The time values for every input file are the same. (0, 100, 200, 300, 400, 500, 600, 700, 800, 900, 1000)
In this lab, you need to develop a python program to calculate and output the maximum acceleration reached by each car model during the test drive using the provided skeleton code. Furthermore, you need to plot a graph of acceleration against time for each car model. Refer the Lab 7: Beams and Cars L7.E2 for instructions.
Please submit the flowchart diagram that illustrates the algorithm of your program here.
You are given a file containing data about multiple beams. Each line in the file represents data for one beam, formatted as follows:
Length YoungsModulus MomentOfInertia Load
Example line:
5.0 210 0.0001 10
Note: The file name will be given as input.
Example Input File:
5.0 210 0.0001 106.0 200 0.0002 124.0 190 0.00015 87.0 250 0.0001 158.0 220 0.00025 20Develop a python program to read the file and calculate the following for each beam:
Note: The following formulas can be used.
Maximum deflection (Dmax) :
Dmax = P L3 48 E I
Dmax = \frac{PL^3}{48EI}
𝐼 - moment of inertia.
Maximum bending stress (Smax)
Smax = \frac{PL}{4I}
Please submit the flowchart diagram that illustrates the algorithm of your program here.
def ProcessList(L):
if(len(L) <= 1):
return L
else:
NL = ProcessList(L[1:])
NL.append(L[0])
return NL
print(ProcessList([1, 2, [31, [321], 33], 4, 5]))
Отримайте необмежений доступ до відповідей на екзаменаційні питання - встановіть розширення Crowdly зараз!