Answered step by step
Verified Expert Solution
Question
1 Approved Answer
PLEASE HELP C + + NO LOOPS, VOIDS,SWAPS,IF , ELSE IF . ONLY USE FLOAT , COUT, CIN. ( WHAT I NEED HELP ON WITH
PLEASE HELP C NO LOOPS, VOIDS,SWAPS,IF ELSE IF ONLY USE FLOAT COUT, CIN.
WHAT I NEED HELP ON WITH MY CODE BELOW THIS IS WHERE I MESSED UP On your billing, you need to make sure that all values have two decimal places, including your scholarship. This is done by having the values assigned as doubles and using the output formatting of setprecision fixed, and showpoint within your cout statement. When you have the decimal places you want to align your values based on the the decimals, as you never know how lowhigh the dollar amount will be You'll also want to keep an eye on the details that are shown to your user. If you're going to have designed formatting you need to be sure that tops and bottoms are reflective, so on your details, the bottom has more than the top and the full title line is not surrounded, so both bottom and top would need more. In your billing you would either want to lower the amount of spacing or add more so that it cover the dollar amounts completely. Your tuition and fees needed to have been assigned to constant variables. Your credit hours and needed to also have been assigned to constant variables. The same should have been done with your course prefixes, numbers, and names. One of the main parts of this project was to use output formatting which you did not do You typed out the information with all spaces. All of your cout statements for your table should have consisted of set width commands and possibly right andor left alignments. Also as previously stated, none of the information should have been hard coded because they needed to have been assigned to variables On your calculations, you are using more processing power than required. Instead of multiplying each credit hours by the cost to get your class amounts, when it comes to your tuition, you should just add up the credit hours for each class and then multiply that by your credit hour fee, that way there is only one multiplication. For your total enrollment hours, this was a required calculation, which you do not have as you did not declare variables to hold the values needed.
#include
#include
#include
using namespace std;
int main
coutWELCOME TO THE SEMESTER endl;
string firstName,lastName;
int idnumber;
int scholarship;
float ch ;
float fee ;
float classch;
float classch;
float classch;
float classch;
float classch;
float tution class class class class class;
float total tution fee;
cout "Please enter your first name, followed by your last name, and your student id number." endl;
cin firstName lastNameidnumber;
cout "Did you recieve a scholarship, if so please enter the amount or scholarship;
cout "Thank you"
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