Question: Code in C++ With the instructions Question 1: Write an algorithm and code to input the following sentences from a .txt file and output the

Question 1: Write an algorithm and code to input the following sentences from a .txt file and output the sentences and total number of characters in each) in a .txt file (25 marks) State of Mississippi City of Hattiesburg University of Southern Mississippi School of Computing Sciences and Computer Engineering Question 2: The output.bct has the following numbers. 100 121 243 450 Question 1: Write an algorithm and code to input the following sentences from a .txt file and output the sentences and total number of characters in each) in a.txt file (25 marks) State of Mississippi City of Hattiesburg University of Southern Mississippi School of Computing Sciences and Computer Engineering Question 2: The output.txt has the following numbers. 100 121 243 450 Using two variables (int num and int sum) in your code and output the sum the of the numbers. If your num has 450 and sum= 914, then write code to swap the values of two variables as you output them
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
