Question: This is a c program not a c++ Submission Instruction. our homework will be submitted electronically to Canvas. The file format must be a zip
Submission Instruction. our homework will be submitted electronically to Canvas. The file format must be a zip file. Your file should be named elec 1520 hw bitwise your name.zip. Substitute your first and last name for "your name" in the file name. Example: Students name is Sparky Watts. The file name is elec 1520 hw bitwise sparky watts.zip. Write separate Cprogram for problems 1-3. Name the Cprograms: bitwise01.c, bitwiseo2.c, and bitwise03.c. Place these in your compressed file. The program must include the following information in comments: (1) problem number, (2) course information, (3) assignment, (4) date, and (5) student name. Avoid writing all of your code in main. write separate functions to accomplish tasks. 1. Write a program that prompts the user to enter a hexadecimal number that is stored in an unsigned 8 bit integer. Use the data type uint8 t found in the header file stdint.h. Display the binary representation of the number entered. You may assume that the user always enters a valid number (i.e. scanf does not fail). Your solution must use bitwise operators to find the binary representation. If your solution uses math operators such as addition, subtraction, multiplication, division and remainders to find the binary 1's and 0's, zero credit will be awarded. (10 points) Example program output is shown below. CAUsersDianelDesktoplparse command line\binlDebuglpars... o 33 Enter 8 bit hexadec inal value da Hexadec inal: 0xda Binary: 1101 1010
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
