ComputerScienceExpert

(11)

$18/per page/

About ComputerScienceExpert

Levels Tought:
Elementary,Middle School,High School,College,University,PHD

Expertise:
Applied Sciences,Calculus See all
Applied Sciences,Calculus,Chemistry,Computer Science,Environmental science,Information Systems,Science Hide all
Teaching Since: Apr 2017
Last Sign in: 103 Weeks Ago, 3 Days Ago
Questions Answered: 4870
Tutorials Posted: 4863

Education

  • MBA IT, Mater in Science and Technology
    Devry
    Jul-1996 - Jul-2000

Experience

  • Professor
    Devry University
    Mar-2010 - Oct-2016

Category > Programming Posted 26 May 2017 My Price 8.00

pre-processor #include

//Add your header comment here //pre-processor #include <iostream> #include <iomanip> #include <string> using namespace std ; //the main function int main() { const int INCREASE_PERCENT = 5 ; double salary ; cout << "This program calculates a salary raise" << endl ; cout << "Enter the original salary (e.g. 10500.50): " ; cin >> salary ; double newSalary = salary + salary * INCREASE_PERCENT/100.0; double difference = newSalary - salary ; cout << fixed << setprecision (2) ; cout << endl ; cout << setw (26) << left << "Original salary:" << setw(10) << right << salary << endl; cout << setw (26) << left << "New salary after 5% raise:" << setw (10) << right << newSalary << endl; cout << setw (26) << left << "Difference:" << setw (10) << right << difference << endl; return 0 ; }

Answers

(11)
Status NEW Posted 26 May 2017 09:05 AM My Price 8.00

-----------

Not Rated(0)