⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pay_test.cpp.bak

📁 C++的常用算法
💻 BAK
字号:
#include <iostream.h>

float Hours_Worked, Pay_Rate, Pay;

void main()
{
    cout << "enter the hours worked: ";
    cin >> Hours_worked;
    cout << endl << "enter the pay rate: ";
    cin >> Pay_Rate;
    cout << endl << endl;

    if (Hours_worked <= 40)
        Pay = Hours_worked * Pay_Rate
    else
        Pay = 40 * Pay_Rate + Hours_worked - 40 * 1.5 * Pay_Rate;

    cout << "The gross pay is:  Pay" << endl;
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -