Hello, i need to write code samples that follow certain guidelines, these are really short and should be super easy to follow. They will be used to question programmers for knowledge on an exam.
Question #1
Write in pseudo-code the following problem:
The user should be requested to enter a number of days. The program should read the user's number and convert the number of days entered by the user to the equivalent in hours, minutes and seconds and output this result. Example: 1 day would result: 24 hours / 1440 minutes/ 86400 seconds.
Rating is on the following criteria:
Initialization of variables = 2 points
error handling = 2 points
procedural (flow of the code) = 6 points
Question #2
Write an algorithm in pseudo code to read a positive integer N and find the (average / N) of all numbers between 1 and N inclusive.
- Perform any necessary validation required.
- Print the average.
Please note that the user of the program can enter any character
Rating is on the following criteria:
Initialization of variables = 2 points
error handling = 2 points
procedural (flow of the code) = 6 points
That's it, thanks!
DO NOT POST A HUGE RESUME OR I WILL IGNORE YOU. Simply state that you can do the work, provide sample if you'd like, first reasonable bid will be accepted.
I can write the pseudo code for both the algorithms satisfying all the criteria within a day. If required, I can even code the algorithm in high level languages ( C/C++/Java/.NET )
I am currently studying Computer Science and am a Teaching Assistant, so I am familiar with the sorts of problems and responses expected in University settings. I mainly focus on writing efficient, clean algorithms, so writing simply concise pseudo-code for this should be a snap.