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
Considering the scenario of a business organization, explain in detail how the organization could apply four different types of measures to ensure that employees can prevent unauthorized access to the internal organizational network؟
In: Computer Science
2. Many statistical tests for outliers were developed in an environment in which a few hundred observations was a large data set. With this question, we discuss the limitations of such approaches.
(a) For a set of 1,000,000 values, how many outliers we would have according to the test that says a value is an outlier if it is more than three standard deviations from the average? (Assume a normal distribution.)
(b) Does the approach that states an outlier is an object of unusually low probability need to be adjusted when dealing with large data sets? If so, how?
In: Computer Science
Suppose your method does not return a value. Which of the following is true?
Group of answer choices:
A - You write no word for the return type.
B - Your return type should be void.
C - You write none as the return type.
D - You write public as the return type.
In: Computer Science
Debug the code in the starter file so it functions as intended and does not cause any errors. This program is intended to take two integer inputs and determine whether the second is a multiple of the first or not. The number b is a multiple of the number a if b can be divided by a with no remainder. Remember though that no number can be divided by 0 - so no numbers should be considered a multiple of 0 for the purpose of this exercise.
/* Lesson 5 Coding Activity Question 2 */
import java.util.Scanner;
public class U3_L5_Activity_Two{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
System.out.println("Enter two numbers");
int a = scan.nextInt();
int b = scan.nextInt();
if((b % a =! 0 | a == 0)
System.out.println(b + " is not a multiple of " + a);
else
System.out.println(b + " is a multiple of " + a);
}
}
In: Computer Science
`timescale 1 ns / 1 ns
module cir(a, b, f); input a, b;
output f;
assignf= ~(a&b);
endmodule
(1). Write a general verilog testbench for the above circuit
without using any task. You must include all four testing cases for
a and b. module cir_tb;
In: Computer Science
C++ Please
Fill in for the functions for the code below. The functions will implement an integer list using dynamic array ONLY (an array that can grow and shrink as needed, uses a pointer an size of array). Additional public helper functions or private members/functions can be used. The List class will be instantiated via a pointer and called similar to the code below:
class List {
public:
// Default Constructor
List() {// ... }
// Push integer n onto the end of the list
void push_back(int n) {// ... }
// Push integer n onto the beginning of the list
void push_front(int n) {// ... }
// Pop element at the end of list
int pop_back() {// ... }
// Pop element at the beginning of list
int pop_front() {// ... }
// Adds value at index pos. Indices start at 0
void emplace(int pos, int value) {// ... }
// Return whether the list is empty or not
bool empty() {// ... }
};
In: Computer Science
Roll dice java program
The program simulates a dice roll by generating a random integer between 1 and 6
In: Computer Science
The goal of Requirements Engineering in the software development process is described below -
•Determine exactly what the client wants. This requires much interaction (interviews and questionnaires)
•What requirements are considered but not how to realize them
•Identify functional and non-functional requirements
•Extensive reviews to check that requirements satisfy client needs
From the Requirements Engineering phase, we obtain Requirements specification: the requirements will be precise (uniquely interpretable), complete (everything is specified) and consistent (no contradictions). It is the basis of contract between customer and developer.
Based on the above information, suppose you are working on building a new hypertext browsing system (web browser). Write the Requirements Specification for a hypertext browsing system (web browser).
Please help with this question and explain in your own words to avoid plagiarism. Thanks.
In: Computer Science
Translate the following C code into MIPS assembly code. Assume a in $s0, i in $s1, and base address of b[] in $s2, respectively. Note that the element’s data type in array b is integer (word). Please do not change the C code structure and please comment your MIPS code.
for (i = 100; i>a; i--) {
b[i] = 16*i;
b[i+1] = 16*(i+1);
b[i+2] = 2*i + 16;
}
In: Computer Science
If the No of subnets is A (A=09), find the value of X in subnet mask 255.255.X.0
please do step by step
In: Computer Science
in C programming language, write and test a function that writes and returns through an output parameter the longest common suffix of two words. (e.g. The longest common suffix of "destination" and "procrastination" is "stination", of "globally" and "internally" is "ally, and of "glove" and "dove" is the empty string)
In: Computer Science
Based on the business you proposed in deliverable 1, please submit
Project Deliverable 2 (should have)
Attributes ◦ Customer ◦ Cust_ID: Customer ID; Key identifier; required; simple; single-valued ◦ Cust_Name: Customer name; Key identifier; required; simple; single-valued ◦ Address (street, city, zip, state): Customer address; required, composite; single-valued; state and city can be derived from zip ◦ Balance: Customer’s balance; optional; simple; single-valued ◦ For each entity, specify the attribute with ◦ Brief description (data definition) ◦ Classifications
IS 410 Project 1 Deliverable
Team Name: A-Team - Patricia Balram, David Seo, Dennis Kim, Ethan Lai
Responsibilities: No one is in charge of one specific task, we are all going to be working together collectively as a team for each part of the project.
Business Situation: The business problem we want to solve is finding the right staff for certain technology positions, when you go on a hiring website and look for people for a specific position you are loaded with resumes and people from different positional backgrounds, you don’t want to look through all of them. You want to be able to see people who have the most experience and what they are able to offer your company. People who will use it will be from Indeed.com, and other hiring websites.
Business Rules: Applicants will add their information such as years of work experience, certifications, gpa/where they graduated, etc onto hiring websites like Indeed.com. This information will then be stored into a database where it ranks the applicants in order from best to worst based on their attributes (example: a person with 10 years of work experience will be ranked higher than someone with 5). The employer will then use this information to schedule interviews with the top candidates instead of having to sort through every application one by one to find the right person.
Stored Data: Names, Work Experience, Qualifications/Certifications, Major from school along with GPA, Where they graduated from, and Level of Degree.
Assumptions: Only employers will be able to use this, people who are applying will not be able to use this feature
In: Computer Science
I need this written in C # ASAP
Write a C# console program that continually asks the user "Do you want
to enter a name (Y/N)? ". Use a "while" loop to accomplish this. As long as the user enters
either an upper or lowercase 'Y', then prompt to the screen "Enter First and Last Name: " and
then get keyboard input of the name. After entering the name, display the name to the screen.
In: Computer Science
please write this in C #
Create a Patient class which has private fields for patientid, lastname,
firstname, age, and email. Create public properties for each of these private fields with get and
set methods. The entire lastname must be stored in uppercase. Create a main class which
instantiates a patient object and sets values for each data item within the class. Display the
data in the object to the console window.
In: Computer Science