Question: C++ 1,2,3,4 This lab, along with your TA, will help you navigate through applying iterative statements in C. Once again we will take As part

C++ 1,2,3,4

C++ 1,2,3,4 This lab, along with your TA, will help you navigate

This lab, along with your TA, will help you navigate through applying iterative statements in C. Once again we will take As part of the lab you will need to decide which C selection structure and iterative structure is best suited for a particular function. You will have "while", "do-while", and/or "for statements for the below problem. a modular approach to designing solutions to the problem below the option to use "if, "switch" Labs are held in a "closed" environment such that you may ask your TA questions. Please use your TAs knowledge to your advantage. You are required to move at the pace set forth by your TA. Please help other students in need whe problem. Have a great timel Labs are a vital part to your education in Cpts 121 so work diligently n you are finished with a task. You may work in pairs if you wish. However, I encourage you to compose your own solution to each Tasks: 1. a. Courtesy of Mason Tejera with a bit of my own twist. With your team, write a program that reads in each of the integer values in a file and determines if the sum of the integeis is prime. Use functions where appropriate! b. Determine if the sum of the individual digits, in the sum of the integers, is prime. Use functions where appropriate! 2. With your team, write a program that determines the factorial of n, represented nl, where n is entered by the user. Recall O! is equal to 1 and 1l is also equal to 1. The factorial of a number such as nl is equal to n . (n-1)" (n-2) * ^ 1 . Use functions where appropriate! 3. Write a program that determines the Fibonacci number for the nth term. Recall, the first Fibonacci number is 0 and the second Fibonacci number is 1. The next number in the sequence is always determined by the sum of the previous two terms or numbers in the functions where appropriate! sequence. F n in t nt ng The value o be enteed by mese 4. Once again courtesy of Mason Tejera with a bit of my own twist. Write a program that number was generated. If the user guesses too high, then the the user guesses too loop until without indicating if the guess was too high or too low. Keep track of the total number of guesses taken by the user. Use nested loo appropriatel generates a random number between -100 to 100 and requires that the user guesses which e program should say so. If the user guesses too low, then the program should say so again. The program should continue to the user guesses the correct number. If the user guesses a number outside the range of -100 to 100, then the program should just prompt the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!