the largest negative and positive integers for n-bit 1’s and 2’s complement systems? What are these numbers for 32-bit registers? If (1000001110)2 is an integer in a 10-bit 2’s complement system, what is the binary code for it in 20-bit 2’s complement system? |
+0 forum
4 | ||

Can someone help me figure out why nothing comes up on the output screen. The program compiles but the the output is blank. 1. Maintain information on all students. Each student has the following: 1st line - lastname, city of residence, student id, ssn 2nd line - course, course id, course department, credit hours, grade (number representation... ex. A = 4, B+ = 3.3, C- =1.7 etc) Note - Each student will initially be enrolled in 5 courses... However, the user should be able to add or drop a course (along with its corresponding information) at will! **Please review the … |
+0 forum
4 | ||

can someone help me figure out why my output is incorrect any help would be apprecaited [code]#include<iostream> using namespace std; class fractions { public: fractions fractions :: operator+(fractions f); fractions fractions :: operator-(fractions f); fractions fractions :: operator*(fractions f); fractions fractions :: operator/(fractions f); fractions addFraction(fractions); fractions subFraction(fractions); fractions multiFraction(fractions); fractions divideFraction(fractions); fractions(); fractions(int, int); void getFraction(); void printFraction(); private: int numerator; int denominator; }; //method to add two fractions fractions fractions :: addFraction(fractions f) { fractions temp; temp.denominator = denominator * f.denominator; temp.numerator = numerator * f.denominator + denominator * f.numerator; return temp; } //method to add two fractions … |
+0 forum
4 | ||

can someone help me figure out why the output of my program is coming out wrong [code] #include<iostream> using namespace std; class fractions { public: fractions fractions :: operator+(fractions f); fractions fractions :: operator-(fractions f); fractions fractions :: operator*(fractions f); fractions fractions :: operator/(fractions f); fractions addFraction(fractions); fractions subFraction(fractions); fractions multiFraction(fractions); fractions divideFraction(fractions); fractions(); fractions(int, int); void getFraction(); void printFraction(); private: int numerator; int denominator; }; //method to add two fractions fractions fractions :: addFraction(fractions f) { fractions temp; temp.denominator = denominator * f.denominator; temp.numerator = numerator * f.denominator + denominator * f.numerator; return temp; } //method to add two … |
+0 forum
1 | ||

I have finished all the functions except one. I need help with writing a boolean function to determine if the magic square is a magic square. I don't completely understand boolean functions so any help would be appreciated. Thank you[code]#include<iostream> using namespace std; #include<fstream> //load the array void load2D(int &n, int square[50][50]) { ifstream infile; infile.open("magic.dat"); infile >>n; for (int i =0; i < n; i++) { for (int j = 0; j < n; j++) { infile >>square[i][j]; } } } //Print the 2 dimensional arrray void print2D(int n, int square[50][50]) { for (int i =0; i < n; … |
-2 forum
4 | ||

I completed most of the functions and it compiles but need help with two.Can someone help me with the uniqueScore function which is suppose to print test scores that only appears once and the differenceScore function which is suppose to print the difference between the largest and smallest score. #include <iostream> using namespace std; #include <fstream> void loadArray ( int intscores[], int numScores ); void printScores ( int intscores[], int numScores); void computeAverage ( int scores, int numScores, double & average); void greaterAverage ( int intscores [], int numScores, double & average); void uniqueScores ( int scores, int numScores); void … |
+0 forum
1 | ||

Do you think that the design of operating systems based on providing support for multimedia applications or access to the Internet has resulted in increased security risks? Why or why not? Discuss some security measures that would be taken to protect hardware and software. |
+0 forum
1 | ||

I have started the program but I need help with createing a class which works for both integers and characters. [code] template< class T > class List { private: struct node { T data; node * next; } node * head, * tail; int size; public: List(); void Push_Head ( T item ); // inserts first void Push_Tail ( T item ); //inserts last T Head(); // returns the first node T Tail(); // returns the last node void Pop_Head(); //removes the first node void Pop_Tail(); //removes the last node int Length(); }; List<int> intList; List<char> charList; [/code] |
+0 forum
1 |

The End.