File input: strings and numbers
Ask the user for a file name. Open the named file, and read in two strings and an integer. Close the file and print the two string variables and one integer variable to the screen.
File name: test.txt
Note: There will be a hidden test that will read from a different file having the exact same format, but with different content, from the included file.
Click here to place an order for a similar paper and have exceptional work done by our team and get A+results
Click here to place an order for a similar paper and have exceptional work done by our team and get A+results
Attachment
writing a function
Create a program that asks the user to enter in two numbers. Pass the two numbers as arguments to a function. If the sum of the numbers is greater than 10, the function returns true. Otherwise the function returns false.
This is the prototype for the function:
boolsumthemup(int first, int second);
Sample output #1:
Enter in two numbers
6
8
The sum is greater than 10
Sample output #2:
Enter in two numbers
2
3
The sum is less than 10
Click here to place an order for a similar paper and have exceptional work done by our team and get A+results
Click here to place an order for a similar paper and have exceptional work done by our team and get A+results