C++
1 Explain the properties and limitations of integer and floating-point numbers.
2 Explain nested branches and loops.
3 Explain the fundamental principles of testing and debugging
4 Design a class named EmployeeRecord that holds an employee
We need at least 10 more requests to produce the answer.
0 / 10 have requested this problem solution
The more requests, the faster the answer.
C++ 1 Explain the properties and limitations of integer and floating-point numbers. 2 Explain nested branches...
Employee and ProductionWorker Classes DONE IN C# PLEASE Create an Employee class that has properties for the following data: • Employee name • Employee number Next, create a class named ProductionWorker that is derived from the Employee class. The ProductionWorker class should have properties to hold the following data: • Shift number (an integer, such as 1, 2, or 3) • Hourly pay rate The workday is divided into two shifts: day and night. The Shift property will hold an...
1. Design and code a state diagram to recognize the floating-point literals, integer literals, string literals and variable names of your favorite programming language. 2. Write an EBNF or BNF for boolean expressions, assignment statements, and mathematical/logical operations in Java. 3. Find an example of a loop, show the steps to prove its correctness. Explain in detail why each step is necessary. 4. In a letter to the editor of CACM, Rubin (1987) uses the following code segment as evidence...
C++ please, thank you! Design a class named ArrayClass that has an array of floating-point numbers. The constructor should accept an integer argument and allocate the array on the heap to hold that many numbers. The default constructor should allocate an array that can hold one number. When the user attempts to store items, you must make a copy constructor that correctly produces a new copy of an ArrayClass object from an old one. If the user attempts to store...
Question 3: Represent the following numbers in the memory using 32-bit floating-point representation, then in Hexadecimal. 1. (-1313.3125) 2.(0.00011011) Question 4:_Represent the following data in the memory (show your work): 1.93 // Integer : Two bytes 2.-156 //Integer: Two bytes using Two's complement Question 5: Find the real number (in decimal) which is represented in the memory using 32-bit floating-point representation as follows, please show your steps follows: JOJO AOL
1. [20 marks) The following problems are about floating point sys- tem and floating point representation of a real number. as follows: A toy floating point system is given (B, t, L, U)= (4, 3,-1, 3) (1). [5 marks] Determine the number of distinct positive numbers can be represented by the system; (2). [4 marks] Determine the largest positive number and the small- est positive number the system can be represented by the system and give their decimal values; (3)....
This program has an array of floating point numbers as a private data member of a class. The data file contains floating point temperatures which are read by a member function of the class and stored in the array. Exercise 1: Why does the member function printList have a const after its name but getList does not? Exercise 2: Fill in the code so that the program reads in the data values from the temperature file and prints them to...
USING C# 1. Write a program that takes outputs a string, an integer and a floating-point number separated by commas. Sample output: Bob Marley, 20, 5.2 2. 2. Write a program that asks the user for a string of letters of any size (no spaces), and finally a special character (values 33 to 47 in the Ascii table, or ‘!’ to ‘/’). Generate a random number of any size, integer or floating point, and combine those three pieces of information...
Task 4: Integer and Floating Point Division Open Division.java and write code to solve the following problem: 1. prompts for and reads in an integer (on the same line) 2. Outputs: i) the value of the number divided by 100 as a floating point value ii) the remainder when the number is divided by 100 iii) the number of times 100 divides the integer iv) outputs the digits of the integer in reverse order; i.e., each digit must be extracted...
C++ Programming 1. Write a function (header and body) that accepts an integer as an argument and returns that number squared. 2. Write the code that will fill an integer array named multiples with 10 integers from 5 to 50 that are multiples of five. (This should NOT be in the form of an initialization statement.) 3. Write the code that will display the contents of the integer array named multiples. Recall: the size of the array is 10. 4....
PYTHON 1. Using floating-point numbers can lead to arithmetic errors because floating-point numbers a. require the use of exponents b. are approximate values c. can’t be used in expressions with integers d. usually don’t have enough significant digits ANS: 2. Which of the following will produce the same result as this code? import math as m area = m.pi * radius**2 a. area = m.pi * pow(radius) b. area = m.pi * m.pow(radius) c. area = m.pi * pow(radius, 2))...