I have no idea what to do!!! , Due in the morning. If anyone could help out or just do part of the problems, so I don’t fail the whole thing, I would greatly appreciate it.
(1a) Use a for loop to add the positive odd numbers less than 100. Output the total.
(1b) Use a while loop to add the positive even numbers less than 50. Output the total
(1c) Use a nested loop structure to compute and print the powers from 1 to 10 of the numbers 2, 3, 4, 5, 6, 7.
(1d) Assume you have the following variable char accountType;
which can have an upper or lower case letter ( c or C for checking account) ( s or S for savings account)
( l or L for loan account).
Write a switch statement that outputs an appropriate message to show the value of the current account type, and prints a reasonable message if the account type is not one of the three types given in this problem.
(2) Write a program in C++ that does the following using file input and common output
• read in the number of students in the class
• read in the number of test scores that each student should have completed
• repeat for each student
read the specified number of student scores
compute the average of a student’s scores
determine the letter grade earned by a student using the following criteria
A average between 90 to 100
B average greater than or equal to 80 but less than 90
C average greater than or equal to 70 but less than 80
U unsatisfactory if less than 70
output a student’s scores, average and letter grade appropriately labeled
Sample output expected from the program:
Student 1: Average = 95.2 Grade = A
Student 2: Average = 88.3 Grade = B
Student 3: Average = 75.2 Grade = C
Student 4: Average = 55.2 Grade = U
// you can assume the correct header files are included
// assumption – valid and complete data is stored in a file called scores.txt
int numOfStudents; // identifies the number of student data lines in file
int numOfscores; // identifies the number of test scores for each student
ifstream inData;
inData.open(“scores.txt”);
inData >> numOfStudents;
inData >> numOfScores;
// remainder of the data in the file is the appropriate number of student scores
These are all basic building blocks of programming.
As a software engineer who has to deal with people who skated through school by getting others to do there work, good luck. Maybe next time you should pay attention and read the book.
lololo i cheated so hard in this course, sum kid did all of my programs and i did all of his physics, A’s for everybody, just lookin at that shits makes me wanna kill myself
they make everybody in engineering take this shit, even if it isnt your major, the c++ course i took will be the last c++ i ever see, maybe hes a nonmajor taking the course, so he sucks/isnt interested
what the op needs to do is find a friend that can do this shit so you can copy, or just a stranger willing to barter for other workq
Ya copy at any reasonable school and you will find yourself kicked out of the class and maybe the major.
If you cant figure out simple programming you def are not smart enough to cheat at programming. I do miss people like this tho. Was paid a ton each semester to do Java and C++ projects for them.
I used CIS classes at buff state for a minor so that I did not have to take crappy general classes. Have not used it since. The closest I came was troubleshooting C microprocessor code. Although, the thought process for logic and loop control is pretty helpful no matter the language of choice so you should at least try and DIY.