Compute the value of AFD416-BECE16+67758 using signed magnitude representation
Question 2
Using C or C++ or a program of your choice, write a program that list the storage size of a float, list the minimum and maximum float values, and the precision of the float.
Question 3
Describe the steps of how you will compile the program written in Question 2 above in a typical compiler such as gcc or a compiler of your choice. Show the output of how you have compile the program written in Question 2 above and attach all files generated where applicable.
Question 2
Using C or C++ or a program of your choice, write a program that list the storage size of a float, list the minimum and maximum float values, and the precision of the float.
Question 3
Describe the steps of how you will compile the program written in Question 2 above in a typical compiler such as gcc or a compiler of your choice. Show the output of how you have compile the program written in Question 2 above and attach all files generated where applicable.
Describe the parts/components of a language processing system and describe the role each component plays in the compilation process
What is the output of each part of the language processing system
Consider a vector V(24, 71). What will be the length of the orthogonal projection of
this vector along the direction of a unit vector u(0.6, 0.8)?
Write a program which calculates and displays the Pay of an employee A. The employee is
paid on the basis of number of hours he/she works for. Regular duration of work is 40 hours.
Basic pay for regular hours of work is calculated at the rate of 600Rs.per hour. Consider an
employee has worked 45 hours. The pay-rate for each overtime hour is 300Rs. Per hour. Use
variables with proper naming conventions.
Compute the value 110111001011102-111110000011012 using 10's complement
Q2: Build a DFA for each of the following languages:
1) {w ∈ {a, b}* : every ‘a’ in ‘w’ is immediately preceded and followed by ‘b’}
2) {w ∈ {a, b}* : ‘w’ does not end in ‘ba’}
3) {w ∈ {0, 1}* : ‘w’ corresponds to the binary encoding, (without leading 0’s,) of natural numbers that are evenly divisible by 4}.
4) {w ∈ {a, b}* : ‘w’ has both ‘aa’ and ‘bb’ as substrings}.
5) {w ∈ {0, 1}* : ‘w’ has odd number of 0’s and 1’s}.
explain the three principal recognition processes by
providing appropriate diagram and examples to explain your answer.