Microsoft | Online Assessment | Software Engineer

Write a program (not using any lib functions) to convert an uint32 to a string representing a duodecimal or dozenal number (carry up at twelve), with 'X' for digit ten, 'Y' for digit eleven.
For example, duodeciaml text “21” represents twenty-five, while one hundred and six can be represented as a duodecimal text “8X”.

void toDueDecimal(uint32_t in, char **outtext12) {
   
}	

Write a program to count the number of words in a file. To make it simpler, assume words are separated by one or more spaces (' ') e.g not considering tab or other space-like characters. – Do not use any lib function like sscanf/etc.

long long readStream(string path) {
   
}
Comments (3)