
PLEASE DO NOT USE PRINTF-> professor doesnt want us to use it


Computer Memory and Data Representation
Computers use a fixed number of bits to represent numbers, characters, or other pieces of data. An n bit repository can represent up to 2^n different businesses. For example, a 3-bit memory space can contain one of eight binary patterns: 000, 001, 010, 011, 100, 101, 110, or 111. So it can represent at least 8 different entities. It can be used to represent the numbers 0 to 7, the numbers 8881 to 8888, the letters “A” to “H”, or up to 8 different types of fruit such as apples, oranges, and bananas. Or up to 8 animals including lions and leopards etc.
For example, integers can be represented in 8bit, 16bit, 32bit, or 64bit formats.As the editor of the programme, you choose the proper minimum length for your values.The range of total values that can be expressed will be limited as a result of your choices.With the exception of the minimal length, the entire number can be expressed in a variety of ways, for example, unsigned versus signed numbers. The range of an 8bit signed integer is 0 to 255, while the range of an 8bit unsigned number is -128 to 127, representing 256 different values.
It is important to note that computer memory space only retains a binary pattern. It is entirely up to you, as the editor, to decide how these patterns will be interpreted. For example, the 8bit binary pattern "0100 0001B" can be interpreted as a 65 signature number, or an ASCII letter 'A', or other private information known only to you. In other words, you have to first decide how you represent a piece of data in a binary pattern before binary patterns make sense. The definition of a binary pattern is called data representation or coding. In addition, it is important that data representation systems are agreed upon by all parties, that is, industrial standards need to be developed and adhered to.
Once you have decided on a data representation system, certain constraints, in particular, accuracy and scope will be set. Therefore, it is important to understand the representation of the data in order to write the most appropriate and efficient programs
Egyptian hieroglyphs (next to left) were used by the ancient Egyptians from 4000BC. Unfortunately, after 500 AD. No one could read ancient Egyptian hieroglyphs until 1799, when Napoleon's troops discovered the Rosetta Stone (during the Napoleonic invasion of Egypt).
The
Rosetta Stone (left) was carved in 196 BC. In the name of Ptolemy V. Basically all three texts contained the same text, and ancient Greek was still incomprehensible, which gave clues to the interpretation of the Egyptian text.
Data cannot be determined without knowing the behavior of the history, the code system.
Trending nowThis is a popular solution!
Step by stepSolved in 2 steps

- Please help in C++arrow_forwardWrite a Better version for this code using any preferred programming language. You should follow the high-quality code concepts and practices to achieve the high-quality version.arrow_forwardI have provided the code I have written. All I need you to do is to rewrite the code. I need you to rewrite the comments, rename all the variables, and shift the code. It should look different once you have edited it. I would like to see another format for this code. It is in C-Programming. I think it shouldn’t take so long. Take your time, please! I really appreciate any help you can provide! CODE STARTS HERE: #include<stdio.h>#include<stdlib.h> struct node{ int key; struct node *left, *right;}; // A utility function to create a new BST nodestruct node *newNode(int item){ struct node *temp = (struct node *)malloc(sizeof(struct node)); temp->key = item; temp->left = temp->right = NULL; return temp;} // A utility function to do inorder traversal of BSTvoid inorder(struct node *root){ if (root != NULL) { printf("("); inorder(root->left); printf("%d", root->key); inorder(root->right); printf(")");…arrow_forward
- C++ Here is the original question for what it is worth. Please do not give me an answer you found on Chegg. I have one of those accounts too. Please read carefully, I have submitted this question several times and no one could follow directtions. I have my code doing what is asked of the problem with the exception of displaying the last_name, first_name A teacher is requiring her students to line up in alphabetical order, according to their first names..For example, in one class Chapel, Christine would be at the front and Uhura, Nyota would be last. The program will get the names from a file using getline since the file name includes spaces. The names should be read in until there is no more data to read. The program should prompt the user for the file name and read the data from the file. Note that these names might include spaces; handle your input accordingly. The expected output is two names; do not show the entire file. Do not use arrays or sorting for this problem. Here is my…arrow_forwardc++ programming one of the image is what the output of the code is supposed to be. please use these if possible: #include <iostream> using namespace std; other stuff such as #include <conio.h> doesn't work on my compiler. Please help me with this program. Thanks!arrow_forwardQuestion: In C#, how can I recreate this into a Windows form Application instead of a console application? Please show a photo of the display and show the code that you used, thank you! Problem: Write a function Seperate( number ) that separates an integer number (ranging from 0 to 99999) into its digits. For example, if the number is 42329, the function finds 4, 2, 3, 2, 9. If the number is 323, the function finds 0, 0, 3, 2, 3. (Hint: use modulus and integer division operations.) Code: using System;public class RecExercise4{static void Main(){Console.Write("Input any number (ranging from 0 to 99999) : ");int num = Convert.ToInt32(Console.ReadLine());Console.Write(" The digits in the number are : ");separateDigits(num);} static void separateDigits(int n){int i = 4;int[] arr;arr = new int[5];while (i>-1){arr[i] = n%10;n = n/10;i--;}foreach(int j in arr)Console.Write(" " + j);}}arrow_forward
- 2. I have provided the code I have written. All I need you to do is to rewrite the code. I need you to rewrite the comments, rename all the variables, and shift the code. It should look different once you have edited it. I would like to see another format for this code. It is in C-Programming. I think it shouldn’t take so long. Take your time, please! I really appreciate any help you can provide! CODE STARTS HERE: #include<stdio.h>#include<string.h>#include<stdlib.h> int main(int argc, char* argv[]){ printf("Entered String is: %s\n", argv[1]); const char *original_str = argv[1]; int i = 0, j = 0; int err_flag = 0; char num_arry[10] = {'0','1','2','3','4','5','6','7','8','9'}; /*if string conatins a digit in it return error, simple linear search has been used*/ for(i=0;i<10;i++){ for(j=0;j<strlen(original_str);j++){ if(original_str[j] == num_arry[i]){ printf("error\n"); err_flag = 1;…arrow_forwardC++YOU ONLY NEED TO EDIT date.h, dateOFYear.h, and dateOFYear.cpp date.h | date.cpp | dateOfYear.h | dateOfYear.cpp | dateTest.cpp You have been provided a Date class. Each date contains day and month parameters, a default and a custom constructor, mutator and accessor functions for the parameters, and input and output functions called within operator >> and <<. You will be writing a DateOfYear class, which expands on the Date class by adding a year parameter. This will be achieved via inheritance – DateOfYear is the derived class of the Date base class. In DateOfYear, will need to write… The include guards for the class A default constructor that initializes all parameters to 1 A custom constructor that takes in a month, day, and year to initialize the parameters Mutator and accessor for the year parameter Redefined versions of inputDate and outputDate that takes into account the new year parameter. The driver program, dateTest.cpp, is already set for use with both Date…arrow_forwardWithout using any string literal notation, how do you create the C++ statement that manually creates a null-terminated C-style string as an array of characters. Use the string “Sampson” as your example. Which element is stored in the base address of the array?arrow_forward
- This assignment will give you practice on basic C programming. You will implement a few Cprogramsarrow_forwardI need help with creating an Algorithm and Green text/comments for this C++ code. My professor told me that the code needs to look ORGANIZE AND NEAT and BE EASY TO READ. He recommends writing notes/comments ( I assumed he's referring to the GREEN TEXT). I MUST HAVE A ALGORITHM AT THE TOP OF THE CODE AND COMMENTS FOR THIS CODE. THE PHOTOS SHOWS AN EXAMPLE OF CODE THAT IS ORGANIZED IN THE WAY MY PROFESSOR WANTS IT. I NEED HELP WITH CREATING AN ALGORITHM AND ORGANIZING THE CODE IN THE WAY MY PROFESSOR WANTS IT. PLEASE HELP. I ALREADY CREATED THE CODE JUST NEED HELP WITH I MENTION ABOVED.arrow_forward
- Computer Networking: A Top-Down Approach (7th Edi...Computer EngineeringISBN:9780133594140Author:James Kurose, Keith RossPublisher:PEARSONComputer Organization and Design MIPS Edition, Fi...Computer EngineeringISBN:9780124077263Author:David A. Patterson, John L. HennessyPublisher:Elsevier ScienceNetwork+ Guide to Networks (MindTap Course List)Computer EngineeringISBN:9781337569330Author:Jill West, Tamara Dean, Jean AndrewsPublisher:Cengage Learning
- Concepts of Database ManagementComputer EngineeringISBN:9781337093422Author:Joy L. Starks, Philip J. Pratt, Mary Z. LastPublisher:Cengage LearningPrelude to ProgrammingComputer EngineeringISBN:9780133750423Author:VENIT, StewartPublisher:Pearson EducationSc Business Data Communications and Networking, T...Computer EngineeringISBN:9781119368830Author:FITZGERALDPublisher:WILEY





