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}.
Product of Numbers from M to N
This Program name is Product of Numbers from M to N. Write a Python program to Product of Numbers from M to N, it has two test cases
The below link contains Product of Numbers from M to N question, explanation and test cases
https://drive.google.com/file/d/1_esJ7Hmvq9C-MQ-Y5I2y-157JwVDHf_v/view?usp=sharing
We need exact output when the code was run
Sum of K powers
This Program name is Sum of K powers. Write a Python program to Sum of K powers, it has two test cases
The below link contains Sum of K powers question, explanation and test cases
https://drive.google.com/file/d/1Oq4KM7EiY-hpyfssYGYvIJ_qgPywpP55/view?usp=sharing
We need exact output when the code was run
Find Power of Number
This Program name is Find Power of Number. Write a Python program to Find Power of Number, it has two test cases
The below link contains Find Power of Number question, explanation and test cases
https://drive.google.com/file/d/1vDqKtEIKkaYkLdD_0hwA5rRycaPlBrvG/view?usp=sharing
We need exact output when the code was run
Solid Right Angled Triangle - 2
This Program name is Solid Right Angled Triangle - 2. Write a Python program to Solid Right Angled Triangle - 2, it has two test cases
The below link contains Solid Right Angled Triangle - 2 question, explanation and test cases
https://drive.google.com/file/d/1wZHjOSToDFKleclnKLf2md1FclvO7EWq/view?usp=sharing
We need exact output when the code was run