Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

CSIS 111 PROGRAMMING: IF LOOPS & INPUT FROM DATA FILE ASSIGNMENT INSTRUCTIONS OVERVIEW You will write a C++ program that computes a student's grade for

image text in transcribedimage text in transcribedimage text in transcribedimage text in transcribed
CSIS 111 PROGRAMMING: IF LOOPS & INPUT FROM DATA FILE ASSIGNMENT INSTRUCTIONS OVERVIEW You will write a C++ program that computes a student's grade for an assignment as a percentage given the student's score and total points. The nal score must be rounded up to the nearest Whole value. INSTRUCTIONS Write a C++ program that computes a student's grade for an assignment as a percentage given the student's score and total points. The nal score must be rounded up to the nearest Whole value. 1. Use the Lab Template you setup last week to function as the foundation of your program. 2. Add the variables & math computations necessary to complete the calculations. Make sure you use the ceil function in the header le. 3. The input to the program must come from an external data le that you create. You will create a text le. The le will contain a single line with the score and total separated by a space. 4. Display the floatingpoint result up to 5 decimal places. Output the results to the screen. The output must be labeled clearly and formatted neatly. 5. Include proper formatting, and appropriate comments in your code. In addition, you must print to the console \"Excellent\" if the grade is greater than or equal to 90, \"Well Done" if the grade is less than 90 and greater than or equal to 80, \"Good\" if the grade is less than 80 and greater than or equal to 70, \"Need Improvement\" if the grade is less than 70 and greater than or equal to 60, and \"Fail" if the grade is less than 60. PROGRAMMING: PERMUTATIONS ASSIGNMENT INSTRUCTIONS OVERVIEW Using the double variable type, you will create a program that uses two variables to calculate the number of permutations of the potential team arrangements. INSTRUCTIONS The number of permutations of a set of 11 items taken r at a time is given by the following formulanl/rKn r)!: where n! is the factorial of n, r! is the factorial of r, and (rtr)! is the factorial of the result of nr. The factorial of a number n can be solved using the following formula: 11! = e _\"n"\\/ 27:11. If there are 18 people in your class and you want to divide the class into programming teams of 3 members, you can compute the number of different teams that can be arranged using this formula (nl/rKn r)!). Write a C++ program that determines the number of potential team arrangements. You will need to use the double type variable for this computation. 1. Copy the Lab Template from the lab submittal instructions to fa new blank c++ le. Use the le as the foundation of your program. 2. Add the variables & math computations necessary to complete the calculations. 3. Output the results to the screen. The output must be labeled clearly and formatted neatly. 4. Include proper formatting, and appropriate comments in your code. More comments , inside for the programmer and outside for the user = better grades. TEMPLATE // -- brief statement as to the file's purpose //CSIS 111-
ADD YOUR SECTION NUMBER // //Include statements #include #include using namespace std; //Global declarations: Constants and type definitions only -- no variables //Function prototypes int main() //In cout statement below SUBSTITUTE your name and lab number cout

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions