Computers and Technology
Computers and Technology, 08.07.2019 06:30, louie3096

Whats the error in this code? // this program uses an if/else if statement to assign a // letter grade (a, b, c, d, or f) to a numeric test score. #include using namespace std; int main() { int testscore; cout < < "enter your test score and i will tell you\n"; cout < < "the letter grade you earned: "; cin > > testscore; if (testscore < 60) cout < < "your grade is f.\n"; else if (testscore < 70) cout < < "your grade is d.\n"; else if (testscore < 80) cout < < "your grade is c.\n"; else if (testscore < 90) cout < < "your grade is b.\n"; else cout < < "that is not a valid score.\n"; else if (testscore < = 100) cout < < "your grade is a.\n"; return 0; }

answer
Answers: 1

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 15:30, gudon986732
When creating a budget, log fixed expenses before income. after income. after savings. at the top.
Answers: 1
image
Computers and Technology, 22.06.2019 19:20, bob4059
1)consider the following code snippet: #ifndef book_h#define book_hconst double max_cost = 1000.0; class book{public: book(); book(double new_cost); void set_cost(double new_cost); double get_cost() const; private: double cost; }; double calculate_terms(book bk); #endifwhich of the following is correct? a)the header file is correct as given. b)the definition of max_cost should be removed since header files should not contain constants. c)the definition of book should be removed since header files should not contain class definitions. d)the body of the calculate_terms function should be added to the header file.
Answers: 1
image
Computers and Technology, 23.06.2019 01:50, jumoke26
Create a class named majors that includes an enumeration for the six majors offered by a college as follows: acc, chem, cis, eng, his, phys. display the enumeration values for the user, then prompt the user to enter a major. display the college division in which the major falls. acc and cis are in the business division, chem and phys are in the science division, and eng and his are in the humanities division. save the file as majors. java.
Answers: 2
image
Computers and Technology, 23.06.2019 18:00, teamroper35
Which finger presses the h key on the keyboard? index finger on the left hand pinky finger on the right hand index finger on the right hand thumb on the left hand
Answers: 1
Do you know the correct answer?
Whats the error in this code? // this program uses an if/else if statement to assign a // letter gr...

Questions in other subjects: