Systems Architecture
7th Edition
ISBN: 9781305080195
Author: Stephen D. Burd
Publisher: Cengage Learning
expand_more
expand_more
format_list_bulleted
Expert Solution & Answer
Chapter 3, Problem 20VE
Program Description Answer
“Double-precision” data type is used to avoid under flow and overflow and also it increases the accuracy of the value.
Expert Solution & Answer
Want to see the full answer?
Check out a sample textbook solutionStudents have asked these similar questions
C++ offers many different data types each differing in the type of data they store, the range for each type and the size required to store each data type. List the different data types that you would need to utilize for designing your program by justifying the reason for your choice.
How can you use decimal data types effectively? What are the benefits and drawbacks of utilizing them?
You are required to design and develop a system that can add students’ data into arrays. Theinformation of a student includes id (unique), name, program and accumulated total.Design 4 different arrays to store the 4 information of student: ID, name, program andaccumulated total. Each array can store 20 elements. Initialize the arrays with 10 data each.Align the element so that same element index in 4 arrays is keeping data for a particularstudent. You are not allowed to use data structure like List, ArrayList, Object or HashMapother than array to store the student data.The program has two student objects: one stores the student with highest accumulated totaland the other stores the student with lowest accumulated total. Create a loop that finds thehighest total and lowest total from the initialized arrays. Create two student objects and storethe data into them.The program provides 2 main functions:• Add student - The function allows the user to add more student to the arrays. Eachtime…
Chapter 3 Solutions
Systems Architecture
Ch. 3 - Prob. 1VECh. 3 - Prob. 2VECh. 3 - A(n) __________ is an integer stored in double the...Ch. 3 - Prob. 4VECh. 3 - Assembly (machine) language programs for most...Ch. 3 - Prob. 6VECh. 3 - Prob. 7VECh. 3 - Prob. 8VECh. 3 - Prob. 9VECh. 3 - A(n) __________ is an array of characters.
Ch. 3 - Most Intel CPUs use the __________, in which each...Ch. 3 - Prob. 12VECh. 3 - A(n) __________ contains 8 __________.Ch. 3 - Prob. 14VECh. 3 - The result of adding, subtracting, or multiplying...Ch. 3 - Prob. 16VECh. 3 - Prob. 17VECh. 3 - Prob. 18VECh. 3 - Prob. 19VECh. 3 - Prob. 20VECh. 3 - Prob. 21VECh. 3 - Prob. 22VECh. 3 - ___________ occurs when the result of an...Ch. 3 - In a CPU, _______ arithmetic generally is easier...Ch. 3 - In the ________, memory addresses consist of a...Ch. 3 - Prob. 26VECh. 3 - Data represented in ________ is transmitted...Ch. 3 - Prob. 28VECh. 3 - Prob. 29VECh. 3 - A(n) ____________ is one instance or variable of a...Ch. 3 - Prob. 1RQCh. 3 - Why is binary data representation and signaling...Ch. 3 - Prob. 3RQCh. 3 - Prob. 4RQCh. 3 - Prob. 5RQCh. 3 - Prob. 6RQCh. 3 - Prob. 7RQCh. 3 - Why doesnt a CPU evaluate the expression 'A' = 'a'...Ch. 3 - Prob. 9RQCh. 3 - What primitive data types can normally be...Ch. 3 - Prob. 11RQCh. 3 - How is an array stored in main memory? How is a...Ch. 3 - Prob. 14RQCh. 3 - Prob. 1PECh. 3 - Prob. 2PECh. 3 - Prob. 4PECh. 3 - Prob. 5PECh. 3 - Prob. 6PECh. 3 - Prob. 1RPCh. 3 - Prob. 2RPCh. 3 - Prob. 3RP
Knowledge Booster
Similar questions
- Provide examples of the data types that each of the four user types requires.arrow_forwardC Programming Question Will you update the code using the instructions & code I provided. Please attach a picture of your code. Thank you! The code you may need! #include <stdio.h>#include <stdlib.h>#include <string.h>#include <ctype.h> #define TRUE 1#define FALSE 0#define NAME 20#define ROW 8#define COL 8#define SPACE ' '#define PLAYER_X 1#define PLAYER_O 2#define ZERO 0#define ONE 1#define TWO 2#define THREE 3#define FOUR 4#define INVALID -1 struct Player{ int playerNum; char playerName[NAME]; int discCount;}; // function prototypesvoid welcomeScreen ();void displayExplicitBoard();void clearScreen();void playGame();void initializeBoard(char board[ROW][COL]);void displayBoard(char board[ROW][COL]);void makeMove(char playerName[NAME], int playerNum, char board[ROW][COL]);int isValid(char move[TWO], char board[ROW][COL]);int getMoveRow(char move[TWO]);int getMoveCol(char move[TWO]);int isOpen(char move[TWO], char board[ROW][COL]);void…arrow_forward(C PROGRAMMING ONLY) 5. Adding Them All Upby CodeChum Admin Being the business-minded I am, I have a lot of sources of income. My money is getting out of hand and I don't know how much is the total now. Can you please help me add them all up? Instructions: In the code editor, you are provided with a main() function that asks the user for 3 integers.Your task is to create 3 pointers and name them: a_ptr, b_ptr, and c_ptr. Then, assign the address of a to a_ptr, b to b_ptr, c to c_ptr. Make sure to do this before the printf statement found at line 16.Input 1. First integer 2. Second integer 3. Third integer Output Enter a: 1Enter b: 6Enter c: 3Total = 10arrow_forward
- Python / Numpy i just need the syntax. Not someone to run the code. Csn use just use a fake data base name?arrow_forwardInstructions: You are strictly not allowed to use anything other than pointers and dynamic memory. One function should perform one functionality only. Task 1 Write a program in C++ that reads data from a file. Create dynamic memory according to the data. Now your task is to perform the following task. Row wise Sum Column wise Sum Diagonal wise Sum Example data.txt 4 5 1.6 10.2 33.7 99 20.5 3 44 50 96.1 2 8 9 4 74 50 99 19.1 Output: Sum row wise: 165, 191, 17, 242.1 Sum col wise: 127.6, 120.1, 228.8, 118.1, 20.5 Sum diagonal wise: Not Possible Note: You are restricted to use pointers and your function should be generic. Avoid memory wastage, memory leakage, dangling pointer. Use regrow or shrink concepts if required.arrow_forwardIn Pseudocode #7 – List 4 main data types we used in this course and describe the data that is stored in each one. List examples of variable names that make sense for each data type. #8 – Debug this input validation function and fix it. There is a lot wrong with it! Function Integer getNumberGreaterThanX(msg, x) myInteger = getInteger(msg) While myInteger < x Display "The number must be < “, myInteger , “. Try again." Input x End While End Function Write the corrected function below: #9 – Write a validation function based on the provided variables and call statement below. The validation function should return an Integer value greater than zero or print an error message until an acceptable value is entered. Declare Integer positiveValue = 0 Declare String message = "Enter the year you were born (no negative numbers!)" positiveValue = getNumberGreaterThanZero(message) Write the function definition below:arrow_forward
- Assembly language help (GNU,gas assembler, at&t syntax) Declare an array that contains the numbers: 1,2,3,4 (byte size). Use BX to point to the first array element initially. Subtract the second array element from the first, and store the result in the fourth element. Use the INC and DEC commands to change the array element that is pointed to.lsarrow_forwardOnly C programing Language Question : Engineering Faculty wants to employ research assistants. The information of the candidates who want to be employed as research assistants are written in the sequential access file (candidate.txt) by the registration office, respectively, name, surname, school graduation grade, Academic Personnel and Postgraduate Education Entrance Exam score and foreign language level exam score. All numerical information is being written as decimal numbers(float). Engineering Faculty is to use that candidate.txt file to calculate the total scores of each candidate. When calculating the candidate's total score, 25% of the school graduation grade, 50% of the Academic Personnel and Postgraduate Education Entrance Exam score, and 25% of the language score are being taken into consideration. Write a program that reads the entire candidate.txt file and calculates the total score of each candidate, prints the information of the candidates on the screen and writes…arrow_forward.data msg1: .asciiz "\nEnter a lowercase alphabet character: " msg2: .asciiz "\nThe uppercase character is: " .text main: la $a0,msg1 li $v0,4 syscall li $v0,12 syscall move $a0,$v0 jal func1 la $a0,msg2 li $v0,4 syscall move $a0,$v1 li $v0,11 syscall j func2 func1: subi $v1,$a0,0x20 jr $ra func2: li $v0,10 syscall Why do we use subi $v1,$a0,0x20 instruction in func1?arrow_forward
- .data msg1: .asciiz "\nEnter a lowercase alphabet character: " msg2: .asciiz "\nThe uppercase character is: " .text main: la $a0,msg1 li $v0,4 syscall li $v0,12 syscall move $a0,$v0 jal func1 la $a0,msg2 li $v0,4 syscall move $a0,$v1 li $v0,11 syscall j func2 func1: subi $v1,$a0,0x20 jr $ra func2: li $v0,10 syscall Change this program to convert capital letter into small letter. Write down the major changes you make in .text segment only.arrow_forwardC++ 3.23 LAB: Interstate highway numbers Primary U.S. interstate highways are numbered 1-99. Odd numbers (like the 5 or 95) go north/south, and evens (like the 10 or 90) go east/west. Auxiliary highways are numbered 100-999, and service the primary highway indicated by the rightmost two digits. Thus, I-405 services I-5, and I-290 services I-90. Given a highway number, indicate whether it is a primary or auxiliary highway. If auxiliary, indicate what primary highway it serves. Also indicate if the (primary) highway runs north/south or east/west. Ex: If the input is: 90 the output is: I-90 is primary, going east/west. Ex: If the input is: 290 the output is: I-290 is auxiliary, serving I-90, going east/west. Ex: If the input is: 0 the output is: 0 is not a valid interstate highway number.arrow_forwardThe variable's "type" isn't enough to describe it. Data types and features vary by variable. Demonstrate how this idea may characterise any variable.arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Systems ArchitectureComputer ScienceISBN:9781305080195Author:Stephen D. BurdPublisher:Cengage Learning
Systems Architecture
Computer Science
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Cengage Learning