Question
I have a project due and it's not letting me post it here. c++ // Lab 3 BEGIN // Chapter 4 Decisions, If, If Else,If
I have a project due and it's not letting me post it here. c++
// Lab 3 BEGIN // Chapter 4 Decisions, If, If Else,If Else if // Run this BEGIN file. Examine the code and analyze it. Run the program // multiple times so that each branch is tested and verified. // Once you fully understand the code add the following modifications // Create constant string variables for A_COMMENT, B_COMMENT, C_COMMENT, D_COMMENT, F_COMMENT, and ERROR_COMMENT // Replace the string literals in the cout statements with the constants // Instead of assigning the value true to isActive, prompt the user for input. // After inputting the student name and before inputting the test scores, ask if the student is active and assign a true or false result to isActive based on the input. // You decide exactly how to prompt the user and accept the input. // If the student is inactive, do not calculate the average or assign a grade. Output a comment that the student is inactive. // Your job is to decide how to structure the nested if/else statement with this added logic. // Test all branches to ensure it works correctly. // Submit the .cpp file Please view file below, any issues let me know..
https://docs.google.com/document/d/1h8qWvpqTCdJ_nb-nkRaT1z4ThBSEWou-i6fOJfSLF90/edit?usp=sharing
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started