
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Enter the program in Listing 2.9.2 and test it. Use Exercises 2.6 to test the program.
First pic is the code. Second pic is what is needed to test the code. Pls I have no idea when i fill in the numbers the code does nothing

Transcribed Image Text:1
/* echoDecHex.c
* Asks user to enter an unsigned integer in decimal and
* one in hexadecimal then echoes both in both bases.
2
3
4
* 2017-09-29: Bob Plantz
5
*/
6.
7
#include <stdio.h>
8.
9.
int main(void)
10
{
unsigned int unsignedInteger;
unsigned int bitPattern;
11
12
13
printf("Enter an unsigned decimal integer: ");
scanf("%u", &unsignedInteger);
14
15
16
printf("Enter a bit pattern in hexadecimal: ");
scanf("%x", &bitPattern);
17
18
19
printf("%u is stored as %#010x, and\n", unsignedInteger,
unsignedInteger);
printf("%#010x represents the unsigned decimal integer %u\n",
20
21
22
bitPattern, bitPattern);
23
24
return 0;
25
}

Transcribed Image Text:2. Convert the following unsigned decimal integers to 8-bit hexadecimal
representation:
а. 100
b. 125
С. 10
d. 88
е. 255
f. 16
g. 32
▼ Answer
h. 128
а. 64
b. 7d
С. Оа
d. 58
е. ff
f. 10
g. 20
h. 80
Expert Solution

arrow_forward
Step 1
This 100 is basically represent in 8 bit so it will be 0x00000064
Step by stepSolved in 3 steps with 8 images

Knowledge Booster
Similar questions
- Write an Algorithm in Pseudocode for the Exercises Below Prompt user for 5 numbers and display the Total?arrow_forwardPrinting Triangles with Nested Loops Due Date: Thursday, April 13 at 11:59 PM Task Write a JAVA program that reads the height of a triangle (less than 10) from the user and then calls two void methods named plotTril and plotTri2. Each of the 2 methods should have a parameter for the height of the triangle and use printf inside of nested For loops to produce the output of the respective triangle for the user. Note that the numbers in the triangle are left-aligned. Create a project and class named HW8FirstnameLastname in NetBeans using your actual first and last names to hold your program. For height = 8, plotTril and plotTri2 will print the following triangles respectively. 12 1 1 2 1 4 2 8 4 16 8 32 16 1 2 4 1 2 4 8 1 2 4 8 4 12 2 1 844H 2 16 1 NL 1 2 48 16 32 2 1 1 724 COM 8 16 32 64 1 2 48 1 36 24 16 8 00 32 16 64 32 128 64 1 2 4 8 16 32 1 2 4 8 16 1 2 4 8 1 2 4 1 2 1arrow_forwardOnce you have a list of all the mathematical operations, you may put them in a sensible order.arrow_forward
- Write a python program which displays a simple menu as follows:Python ISBN Conversion Menu1. Verify the check digit of an ISBN-102. Verify the check digit of an ISBN-133. Convert an ISBN-10 to an ISBN-134. Convert an ISBN-13 to an ISBN-105. Exit Please remember to use what you have learned during the semester such as:• Functions and/or Value Returning Functions• If structures or logic structures IF/Elif/ELSE• Data structures i.e. File input/output• String manipulations i.e. string slicing and lists, etc.• Modules• Loops i.e. WHILE loops or FOR loops I already created the program by using Python, but here is what I need help with (in bold):• Reading and writing data to a file(s). In other words, have the program to read ISBNs from a file and store the correct results in a file as well.Can you include codes within my current program (included below) so that my program will read ISBNs from a file and store the correct results in a file as well? * Please make sure to use the Python program…arrow_forwardExercise 3: Write a program to simulate an experiment rolling two six sided "fair" dice. Allow the user to enter the number of rolls of the dice to simulate. What percentage of the time does the sum of the dots of the dice equal eight in the ● simulation?arrow_forward
arrow_back_ios
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education