السلام عليكم اخوانى اريد بعض المساعدة
قمت بقرائة اول شبتر من كتاب فى السى++ و الحمدلله فهمته و استيعبته لكننى ابتدئت مع مشاكلى فى الرياضيات الان
فى امتحان يوجد مسئلتان لا اقدر عليهم
اول سؤال
اقتباس31. Sales Tax
Design a hierarchy chart or flowchart for a program that calculates the roral of a retail
sale. The program should ask the user fo r:
The retail price of the item being purchased
The sa les tax rate
Once these items have been entered, the program should calculate and display:
The sales tax for the purchase
The rotal ohhe sale
قمت بعمل هذا الكود هل هو الطلوب ؟؟؟
#include <iostream>
using namespace std;
int main()
{
double RC, ST;
cout <<"The Retail Price : " ;
cin >> RC;
cout <<" The Sales Tax " ;
cin >> ST;
double STR, TOS;
STR = ST - RC + RC ;
TOS = RC - ST;
cout <<"The sales tax for the purchase : " << STR << endl;
cout <<"The rotal ohhe sale : " << TOS << endl;
return 0;
}هل هو صحيح و يعمل المطلوب ؟؟؟؟
الأن البرنامج الثانى المطلوب و هذا ما لم اعرف ماذا اعمل فيه و اطلب منكم مساعدة و ذلك بسبب ال Rate Symbol
.اقتباس32. Account 'Balance
Design a hierarchy chart or flowchart for a program that calculates the current balance
in a savings accounC". The program mUSt ask the user for;
The starting balance
The total dollar amount of deposits made
The rotal dollar amount of withdrawals made
The monthly interest rate
Once [he program calculates the current balance, it should be displayed on the screen
اريد مساعدتكم رجاءً
شكرا لكم
و كل عام و انتم بخير بمناسبة شهر رمضان :)