制作此应用程序

制作此应用程序

问题描述:

需要帮助才能理解这个问题:我们的银行需要一种工具来帮助我们确定贷款申请人的信誉。我们将向Credit Assist计划输入以下信息:



- 每月收入(收入)



- 总债务(债务)



- 债务的每月最低付款额(minPay)



如果债务总额是申请人月收入超过6个月(收入* 6),我们不能给予任何贷款。告知用户不能授予任何贷款。



否则,您从月收入中减去每月最低债务金额。我们可以允许高达30%的金额作为贷款。



credit =(收入 - minPay)* 0.3



让用户知道申请人可以获得批准高达这个(信用)金额。



我尝试过:



Need help trying to understand this question :Our bank needs a tool that will help us in determining credit worthiness of loan applicants. We will enter the following information to Credit Assist program:

- Monthly Income (income)

- Total Debt (debt)

- Monthly minimum payments for the debt (minPay)

If total debt is more than 6 months monthly income of the applicant (income*6), we cannot grant any loan. Inform user that no loan can be granted.

Otherwise, you subtract the minimum monthly debt payment from monthly income. We can allow up to 30% of that amount as loan.

credit = (income - minPay) * 0.3

Let user know that the applicant can be approved for upto this (credit) amount.

What I have tried:

{
	double debt;
	cout << "Total debt: ";
	cin >> debt;

	double minpay;
	cout << "Monthly minimum payments: ";
	cin >> minpay;

	double income;
	cout << "TOtal income";
	cin >> income;

	double credit;
	credit = (income - minpay) *0.3;

	if (debt >= income * 6)
	{
		cout << " No loan can be granted at this moment " << endl;
	}
	else
	{
		cout << "You are approved for this credit amount " << endl;
	}
	system("PAUSE");
	return 0;
}

我们不做你的功课:这是有原因的。它就是为了让你思考你被告知的事情,并试着理解它。它也在那里,以便您的导师可以识别您身体虚弱的区域,并将更多的注意力集中在补救措施上。



亲自尝试,你可能会发现它不是和你想的一样困难!

这个问题很好地解释了我的想法。如果您不明白这个问题,您应该和您的导师联系,看看他是否可以为您澄清。



如果您遇到特定问题,那么请询问,我们会尽力提供帮助。但我们不会为你做这一切!
We do not do your homework: it is set for a reason. It is there so that you think about what you have been told, and try to understand it. It is also there so that your tutor can identify areas where you are weak, and focus more attention on remedial action.

Try it yourself, you may find it is not as difficult as you think!
And the question explains the task pretty well to my mind. If you don't understand the question, you should talk to your tutor, and see if he can clarify it for you.

If you meet a specific problem, then please ask about that and we will do our best to help. But we aren't going to do it all for you!


Quote:

需要帮助尝试理解这个问题

Need help trying to understand this question



第一个答案是与你的老师/导师谈谈,但既然你已经有了代码,我猜这个说法是错误的。

你有代码,你声称没问题,那么问题是什么?

-----

我们不做你的HomeWork。

HomeWork不会在乞求别人做你的工作时测试你的技能,它会让你思考并帮助你的老师检查你对你所学课程的理解以及你在申请时遇到的问题他们。

你的任何失败都会帮助你的老师发现你的弱点并设定补救措施。

你的任何失败都会帮助你了解什么有效,什么无效,被称为'试错'学习。

所以,试一试,重读课程并开始工作。如果您遇到特定问题,请展示您的代码并解释这个问题,我们可能会提供帮助。


The first answer would be to have a talk with your teacher/tutor, but since you already have code, I guess that claim is wrong.
You have code and you claim no problem, so what is the question?
-----
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
Any failure of you will help you to learn what works and what don't, it is called 'trial and error' learning.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.