Answered step by step
Verified Expert Solution
Link Copied!

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(2), fixed, and showpoint within your cout statement. When you have the 2 decimal places you want to align your values based on the the decimals, as you never know how low/high 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 1,2, and 3 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 and/or 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()
{
cout<<"**********************WELCOME TO THE SEMESTER**********************"<< endl;
string firstName,lastName;
int idnumber;
int scholarship;
float ch =263.00;
float fee =162.50;
float class1=3*ch;
float class2=2*ch;
float class3=3*ch;
float class4=2*ch;
float class5=1*ch;
float tution = class1+ class2+ class3+ class4+ class5;
float total = tution + fee;
cout<< "Please enter your first name, followed by your last name, and your student id number." << endl;
cin >> firstName>> lastName>>idnumber;
cout<< "Did you recieve a scholarship, if so please enter the amount or 0"<> scholarship;
cout << "Thank you" <

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Mastering Real Time Analytics In Big Data A Comprehensive Guide For Everyone

Authors: Lennox Mark

1st Edition

B0CPTC9LY9, 979-8869045706

More Books

Students also viewed these Databases questions

Question

2. Value-oriented information and

Answered: 1 week ago

Question

Describe three other types of visual aids.

Answered: 1 week ago