5. What is the minimum number of binary bits needed to represent each of the following
unsigned decimal integers?
a. 65
b. 409
c. 16385
4. How many bytes are contained in each of the following data types?
a. word
b. doubleword
c. quadword.
d. double quadword
•Consider the following scenario
•A company provides catering services for clients who need special-occasion, celebratory dinners. For each dinner, a number of dishes are to be offered. The dinner will be held at a venue. The company will provide staff to serve meals at the venue.
•The company needs a database to store data related to this business activity
–Identify a list of entities
–Identify pairs of entities where a direct relationship exist
–For each pair of relationship draw the entity relationship diagram justifying the choice of cardinalities.
Design Section
In this assignment, let's build a Design Section by applying the CSS concepts we learned till now.
Refer to the below images.
The following images illustrate all device sizes, from extra small to extra large.
Instructions:
Note
Use the image URL's given below.
Background color Hex Code values:
#12022f
#ffffff
Text color Hex Code values:
#12022f
#7b8794
Write a program to find the count of unique digits in a given number N. The number will be passed to the program as the input of type int.
Assumption: The input number will be a positive integer number>=1 and <= 25000.
For e.g.
If the given number is 292, the program should print 2 because there are only 2 unique digits "2" and "9" int this number.
You need to find which digit occurs most number of times across the four given input numbers.
input1, input2, input3 and input4 are the four given input numbers.
The program is expected to find and print the most frequent digit.
Example1 –
If input1=123, input2=234, input3=345, input4=673
We see that across these four numbers,
1, 5, 6 and 7 occur once,
2 and 4 occur twice, and
3 occurs four times.
Therefore, 3 is the most frequent digit and so the program must print 3
NOTE: If more than a digit occurs the same number of most times, then the smallest of those digits should be the result. Below example illustrates this.
Example2 –
If input1=123, input2=456, input3=345, input4=5043
We see that
0, 1, 2 and 6 occur once, and
3, 4 and 5 occur thrice.
As there are three digits (3, 4 and 5) that occur most number of times, the result will be the smallest (min) digit out of these three. Hence, the result should be 3
Develop a C++ program to display the string in left and right justifications. Specify the width as 20 and consider the special character to be filled as ‘&’.
Write overloaded function named Sort that takes array of integers, float numbers and
characters. Get the user input and display it in the sorted order.
Write a function Unique_Occurance and call the function to find the count of unique occurrence digits in a given number N. The number will be passed to the program as the input of type int.
Assumption: The input number will be a positive integer number>=1 and <= 25000.
For e.g.
If the given number is 292, the program should print 1 because there are only 1 unique occurrence digit "9" int this number.
Write a function Third_last_digit in C++ and call the function that print third last digit of the given number. The third last digit is being referred to the digit in the hundreds place in the given number.
For example, if the given number is 3197, the third last digit is 1.
Note 1 - The third last digit should be printed as a positive number. i.e. if the given number is -197, the third last digit is 1.
Note 2 - If the given number is a single-digit or double-digit number, then the third last digit does not exist. In such cases, the program should print -1. i.e. if the given number is 5, the third last digit should be print as -1.