The states have a variety of primary election systems and procedures. What are the advantages and disadvantages for open, closed, and mixed primaries and for caucuses? Explain from both the voters’ and the parties’ perspectives.
In: Economics
After the Coronavirus affected the whole world, the grading system of Schrute University, like many universities, has changed. At Schrute University, unlike other universities, the letter grades students can receive are restricted to A, B, C, D, F, U (Unsatisfactory), and S (Satisfactory). After the final letter grades for undergraduate courses At Schrute University are determined, students are allowed to select one of the options as follows:
Under no circumstances, the student cannot choose a higher or lower grade than the letter grade he/she has received (such as choosing B while receiving C or vice-versa).
, you will implement a C++ program that calculates the course grade of a Schrute University
After the inputs are received, the program will allow the student to get the grade he/she wants but if the grade he/she wants to get is valid within the framework of the above-given conditions. Otherwise, the program terminates the program by stating the reason why the student could not get the desired grade as an error message.
You may implement your algorithm all in the main function, i.e. you are not expected to write any user-defined functions, but of course, you can write some, if you prefer to do so.
The prompts of the input statements to be used have to be exactly the same as the prompts of the "Sample Runs".
At the beginning of your program, the user will be prompted to enter his/her name as the first input. The name of the user should be displayed whenever appropriate in the prompts and the output text. Please see the "Sample Runs" section for some examples.
After the user enters his/her name, (s)he will be asked to provide his/her processed course name. The name of the course should be displayed whenever appropriate in the prompts and the output text. Please see the "Sample Runs" section for some examples.
After the user enters his/her course name, (s)he will be asked if the student has already taken the course they want to process. The user's answer to this question can be "YES" or "NO" only. If there is an answer other than these, the program will give the necessary error message and close the program. Please see the "Sample Runs" section for some examples.
If the student's answer is YES, the program will ask for the grade the student has received from the course currently processed and the student will choose from those grades (A, B, C, D, F). After that, if the student has chosen one of the passing grades (A, B, C, D), the program will ask if the student wants to convert that grade to S. If the student got an F, the program will ask if the student wants to change the grade to U. In both cases, if the student gives an invalid answer other than (A, B, C, D, F) or response other than (YES, NO), the program will display the required error message and terminate the program. Please see the "Sample Runs" section for some examples.
If a student has received “U” the previous semester and got one of (A, B, C, D) in the current semester, students cannot choose other than “S” or current letter grade. In other cases, the program should output the following message:
“Invalid grade selection. If you have received U before, you may choose “S” or current letter grade.”
If a student has received an “S” previous semester and, got an “F” current semester, If a student chooses other than “F”, then the program should output:
“Invalid grade selection, If you have received S before and fail this semester, you get F.”
If a student has received an “F” previous semester and, got an “F” current semester, If a student chooses other than “F”, the program should output :
“Invalid grade selection, If you have received F before and fail this semester, you get F.”
Again, under no circumstances, the student cannot choose a higher or lower grade than the letter grade he/she has received (such as choosing B while receiving C or vice-versa). Also, students unable to choose U if he/she got a grade among
(A, B, C, D) and unable to choose S if he/she got an F. If the student violates any of these situations, the program should give the following output:
“Invalid grade selection. You cannot choose a higher or lower grade than you deserve.”
If the student enters a letter grade that is different than (A, B, C, D, F, S, or U), your program should give the following output:
“Invalid grade selection. Goodbye…”
Finally, if the grade the student wants to get is valid within the framework of the above-mentioned rules, the program should give the following output:
“Dwight, your final grade for CS201 is C. Goodbye…”
Sample Run 1
Welcome to the Fall 2020-2021 Semester grading system. What is your name? John
Hello John! Please enter the name of the course to be processed: CS201
Hello John! If you take the CS201 for the first time, enter YES otherwise NO: ok
Press any key to continue . . .
Sample Run 2
Welcome to the Fall 2020-2021 Semester grading system. What is your name? jane
Hello jane! Please enter the name of the course to be processed: Cs201
Hello jane! If you take the Cs201 for the first time, enter YES otherwise NO: no
Press any key to continue . . .
Sample Run 3
Welcome to the Fall 2020-2021 Semester grading system. What is your name? jane
Hello jane! Please enter the name of the course to be processed: Cs204
Hello jane! If you take the Cs204 for the first time, enter YES otherwise NO: YES
What is your grade from (A,B,C,D,F)? E
Invalid grade selection. Goodbye...
Press any key to continue . . .
Sample Run 4
Welcome to the Fall 2020-2021 Semester grading system. What is your name? Jane
Hello Jane! Please enter the name of the course to be processed: Cs204
Hello Jane! If you take the Cs204 for the first time, enter YES otherwise NO: YES
What is your grade from (A,B,C,D,F)? A
Do you want to switch your grade from A to S (YES or NO)? no
Invalid grade selection. Goodbye...
Press any key to continue . . .
Sample Run 5
Welcome to the Fall 2020-2021 Semester grading system. What is your name? Dila
Hello Dila! Please enter the name of the course to be processed: Cs201
Hello Dila! If you take the Cs201 for the first time, enter YES otherwise NO: YES
What is your grade from (A,B,C,D,F)? B
Do you want to switch your grade from B to S (YES or NO)? YES
Dila, your final grade for Cs201 is S. Goodbye...
Press any key to continue . . .
Sample Run 6
Welcome to the Fall 2020-2021 Semester grading system. What is your name? Dila
Hello Dila! Please enter the name of the course to be processed: Cs201
Hello Dila! If you take the Cs201 for the first time, enter YES otherwise NO: YES
What is your grade from (A,B,C,D,F)? F
Do you want to switch your grade from F to U (YES or NO)? YES
Dila, your final grade for Cs201 is U. Goodbye...
Press any key to continue . . .
Sample Run 7
Welcome to the Fall 2020-2021 Semester grading system. What is your name? Furkan
Hello Furkan! Please enter the name of the course to be processed: Cs404
Hello Furkan! If you take the Cs404 for the first time, enter YES otherwise NO: NO
Please enter your previous grade from (A,B,C,D,F,S,U): C
Please enter your current grade from (A,B,C,D,F): G
Invalid grade selection. Goodbye...
Press any key to continue . . .
Sample Run 8
Welcome to the Fall 2020-2021 Semester grading system. What is your name? FURKAN
Hello FURKAN! Please enter the name of the course to be processed: CS201
Hello FURKAN! If you take the CS201 for the first time, enter YES otherwise NO: NO
Please enter your previous grade from (A,B,C,D,F,S,U): A
Please enter your current grade from (A,B,C,D,F): C
Please enter the grade you want to choose from (A,B,C,D,F,S,U): C
FURKAN, your final grade for CS201 is C. Goodbye...
Press any key to continue . . .
Sample Run 9
Welcome to the Fall 2020-2021 Semester grading system. What is your name? FURKAN
Hello FURKAN! Please enter the name of the course to be processed: CS201
Hello FURKAN! If you take the CS201 for the first time, enter YES otherwise NO: NO
Please enter your previous grade from (A,B,C,D,F,S,U): A
Please enter your current grade from (A,B,C,D,F): C
Please enter the grade you want to choose from (A,B,C,D,F,S,U): S
FURKAN, your final grade for CS201 is S. Goodbye...
Press any key to continue . . .
Sample Run 10
Welcome to the Fall 2020-2021 Semester grading system. What is your name? FURKAN
Hello FURKAN! Please enter the name of the course to be processed: CS201
Hello FURKAN! If you take the CS201 for the first time, enter YES otherwise NO: NO
Please enter your previous grade from (A,B,C,D,F,S,U): A
Please enter your current grade from (A,B,C,D,F): C
Please enter the grade you want to choose from (A,B,C,D,F,S,U): U
Invalid grade selection. You cannot choose a higher or lower grade than you deserve.
Press any key to continue . . .
In: Computer Science
Individuals may change their behavior after the insurance is bought, so that they behave in a more high-risk manner than they did before, which problem is this:
A)Moral hazard problem
B)Adverse selection problem
C)Market signaling problem
D)None of the above
In: Economics
Discuss what areas in psychology would benefit from using a paired-sample t test to better understand that phenomena. For example, when measuring intelligence, we could develop an intervention to help improve intelligence, and the compare before and after scores for each participant.
In: Statistics and Probability
I would like process and details for the insertion process of a NG tube, including what to do before, during, and after, with verification of placement. All details are appreciated. Including positions, assessment, what items to have, how to measure. Thank you for your assistance.
In: Nursing
state cases (held and fact) related to the hire purchase agreement in Malaysia.
- Malaysian hire-purchase law must be referred to
-cases for each segment ( before, during and after the hire purchase agreement)
- make sure the cases are based on hire purchase law in Malaysia
In: Operations Management
A 35.00-mL solution of 0.2500 M HF is titrated with a standardized 0.1120 M solution of NaOH at 25 C
1) the pH at 0.50 mL before the equivalence point
2) the pH at the equivalence point
3) the pH at 0.50 ml after the equivalence point.
In: Chemistry
When a strip of magnesium metal is burned in air (recall Figure 2-1), it produces a white powder that weighs more than the original metal. When a strip of magnesium is burned in a flashbulb, the bulb weighs the same before and after it is flashed. Explain the difference in these observations.
In: Chemistry
In: Economics
Consider again the market for a type of equipment used by fans of crafting.
As a reminder, before the tax:
Vertical intercept, demand curve: 80
Vertical intercept, supply curve: 50
P* = $60
Q* = 40
And after:
The tax makes the price paid by buyers rise to $70 and the price received by sellers to fall to $55. With the tax, only 20 units are sold.
Calculate producer surplus AFTER the tax is applied. Carefully follow all numeric instructions.
In: Economics