- Problem:01
In this challenge, write a program that takes in three arguments, a start
temperature (in Celsius), an end temperature (in Celsius) and a step size.
Print out a table that goes from the start temperature to the end
temperature, in steps of the step size; you do not actually need to print
the final end temperature if the step size does not exactly match. You
should perform input validation: do not accept start temperatures less than
a lower limit (which your code should specify as a constant) or higher than
an upper limit (which your code should also specify). You should not allow
a step size greater than the difference in temperatures. (This exercise was
based on a problem from C
Programming Language).
Sample run:
Please give in a lower limit, limit >= 0: 10 Please give in a higher limit, 10 > limit <= 50000: 20 Please give in a step, 0 < step <= 10: 4 Celsius Fahrenheit ------- ---------- 10.000000 50.000000 14.000000 57.200000 18.000000 64.400000
Problem:02
Line Count Programming Challenge
Here's a simple help free challenge to get you
started: write a program that takes a file as an argument and counts the
total number of lines. Lines are defined as ending with a newline
character. Program usage should be count filename.txt and the output should be the line count.
- Problem:03
File Size Challenge
In this challenge, given the name of a file, print out the size of the file,
in bytes. If no file is given, provide a help string to the user that
indicates how to use the program. You might need help with taking parameters
via the command line or file I/O in C++
(if you want to solve this problem in C, you might be interested in this
article on C file
I/O).
Solve all problems: If you have any problem then email us we give you solution
No comments:
Post a Comment
if You Need Any Help Then Write Us:We Come Back With Solution