Concept explainers
Create an algorithm to allow the user to enter a list of courses they have taken along with the graces received and the credit hours for each course, and then calculate the user’s GPA. The program should first ask the user to type ether Yes or No in response to the question. “Do you want to enter a grade?” If the answer is Yes, the user should be asked to enter the name of the course (text), the grade in the course (A, B, C, D, or F), and the number of credit hours for the course (a positive integer). If the user enters an invalid grade or an invalid number for the credit hours, he or she should be warned and asked to try again a maximum of three times after which an appropriate error message should be generated and the program terminated. If they successfully enter the information for a course, the course name the letter grade, and the credit hours should be displayed in a single row on the screen in an appropriate format and then they should be asked again if they wish to enter a grade, and the entire process repeats if they answer Yes. If they answer NO, the GPA should be calculated and displayed in an appropriate format, and then the program terminated unless no grades were entered (they typed No the first time) in which case an appropriate message should be generated and the program terminated.
Want to see the full answer?
Check out a sample textbook solutionChapter 19 Solutions
Thinking Like an Engineer: An Active Learning Approach (4th Edition)
- Hi. I am trying to practice this problem using a checker online, but everytime I recalculate my answer it always says it's incorrect. So far I have calculated and tried to input the following values: 0.0342 m3/s, 0.0358 m3/s, 0.04277 m3/s, and 0.0555 m3/s but it always keeps saying they are incorrect. Please help show me the correct steps on how to get the correct answer as I am trying to learn this process. Thank you!arrow_forwardImportant instruction: These questions use the last three-digit value (L3D) of individual student matrix numbers. For example, if the matrix number is CD180264 then the L3D value is 264 (since the last three digits is 264). Some data require multiplication of the L3D value, for example, 10(L3D) means 10 x L3D subject name is INDUSTRIAL ENGINEERINGarrow_forwardPlease please please, this is my third time to to ask. It is always wrong, same solution is always submitted and it has a missing pi. Please double check your computation. ASAParrow_forward
- after solving, pls explain why u got the answer really need an explanation thank u so much pls explain in sentences. will ratearrow_forwardplease make your handwriting clear and please please please make sure your answer is correct and solve it step by step and don't forget FBD and everything relation on the question Please dont take the answer from anywepsite thank you very mucharrow_forwardPlease assist with this question. I reviewed the lecture notes that was given and do not understand. Please answer with a detailed explanation. Thank you. I believe there is an easier way to solve this using matlab apparently but I dont know. I will have an image of the reference slide.arrow_forward
- Hi, I need help with the first part of the problem below because I'm very confused about how P1 and P2 should be calculated. If you look at my notes to solve the problem there is already a formula in place as I always thought the Patm should also be multiplied by the Area in the numerator, but it's not if I look at this specific tutorial solution given by my course but it's not explained why. I have done a while ago a very similar problem with using that formula in my notes and it gave me the right results, but it's not working for this one. Could you please help me understand why as I have a test coming soon? Figure Q3 (see image attached) shows a cylinder and pistonenclosing air, the movement of the pistonbeing restrained by a compression spring ofstiffness 20 kN/m. The air is heated andexpands, the piston moving 0.3 m. Thefree length of the spring is 1.0 m.Calculate the work done by the air duringthe process.If the pressure , volume and internal energyof air are related by the…arrow_forwardThe figure below shows a social network where the nodes represent social media influencers,and the lines are the cost of investing in promoting digital links between the nodes. However, for the brand to remain viral, your client, which is a digital advertising firm needs to maintain a connection between influencers number 1 and 12 through other influencers. a. If you wish to recommend your client to choose the digital route from influencer 1 to influencer 12, which route would you recommend to your client and why? Please demonstrate your results through any optimization software (e.g., Excel Solver/R). b. Using the same Figure 1 above but this time the node represents a project undertaking and arcs represent the expected profit (in million £) after completing one project and starting another, what would be the ideal project sequence to maximise the company’s profit? Note: For instance, selecting path Node 1 to Node 2 denotes “after completing project 1 and starting project 2, the…arrow_forwardEngineering Economy A company has determined the price and the monthly demand of its products are related by the equation D = √775 - p, where p is the price per unit in dollar and D, is the monthly demand. The associated fixed costs are $2,125 per month and the variable costs are $100/ unit. Use this information to answer the following: a)What is the optimal number of units that should be produced and sold each month? b) What is the maximum profit? c)Determine the value of D that represents the break-even point?arrow_forward
- A bacteria culture is known to grow at a rate proportional to the amount present. (a) Write down and solve a DE modeling this process. (Your solution will contain two unknown constants.) (b) After one hour, 1000 strands of the bacteria are observed in the culture; and after four hours, 3000 strands. Use this information to complete the determination of the DE. c) Find the approximate number of strands of the bacteria originally in the culture. (d) How long will it take to reach 10,000 strands of the bacteria in the culture.arrow_forwardI was going over the equations for the notes in class and I had a thought. Based on the equations in the image, you could get negative propellant mass. So, I coded it in matlab and I got negative mass. How is that possible? I think I used practical values for the velocity and mass ratio and so on. Did I do something wrong?arrow_forwardI am trying to practice this problem using a checker online, but everytime I recalculate my answer it always says it's incorrect. So far I have calculated and tried to input the following values: 1 hp, 1.01 hp, 0.8 hp, and 12.53 hp, but it always keeps saying they are incorrect. Please help show me the correct steps on how to get the correct answer as I am trying to learn this process. Thank you!arrow_forward
- Elements Of ElectromagneticsMechanical EngineeringISBN:9780190698614Author:Sadiku, Matthew N. O.Publisher:Oxford University PressMechanics of Materials (10th Edition)Mechanical EngineeringISBN:9780134319650Author:Russell C. HibbelerPublisher:PEARSONThermodynamics: An Engineering ApproachMechanical EngineeringISBN:9781259822674Author:Yunus A. Cengel Dr., Michael A. BolesPublisher:McGraw-Hill Education
- Control Systems EngineeringMechanical EngineeringISBN:9781118170519Author:Norman S. NisePublisher:WILEYMechanics of Materials (MindTap Course List)Mechanical EngineeringISBN:9781337093347Author:Barry J. Goodno, James M. GerePublisher:Cengage LearningEngineering Mechanics: StaticsMechanical EngineeringISBN:9781118807330Author:James L. Meriam, L. G. Kraige, J. N. BoltonPublisher:WILEY