User Profile
Collapse
-
I dont know how to write a code to calculate the 1 in a matrix... -
Check for parity property in matrix using C++
Your job is to write a C++ program that reads in a matrix and checks if
it has the parity property. If not, your program should check if the parity
property can be established by changing only one bit. If this is not possible
either, the matrix should be classified as corrupt.
1Stolen from Miguel A. Revilla, Error Correction, http://online-
judge.uva.es/p/v5/541.html, accessed 1 Nov, 2005
1
The Input... -
Given input time, print out time in text (2:00 = Two o'clock)
Write a program that allows a user to input two numbers (the first between
1 and 12, the second between 0 and 59 inclusive) and then prints out the
time they represent, in words. You should follow the format of the example:
Hours: 4
Minutes: 12
Twelve minutes past four
If the number of minutes is greater than 30, you should say the time is “to”
the next hour, otherwise the time should be...
No activity results to display
Show More
Leave a comment: