I want flowchart process for this code c++ _____________________ #include<bits/stdc++.h> using namespace std; int main() { char repeat = 'Y'; for (;repeat...

70.2K

Verified Solution

Question

Programming

I want flowchart process for this code c++

_____________________

#include

using namespace std;

int main()

{
char repeat = 'Y';
for (;repeat == 'Y';){

char empname[222];

float basicSalary, h_r_a, DearnessAllow, tax, netSalary;

int e_id;

cout<<\"\nEmployee Name :\";

cin>>empname;

cout<<\"\nEmployee Id :\";

cin>>e_id;

cout << \"Enter Basic Salary : \";

cin >> basicSalary;

DearnessAllow = 0.30 * basicSalary;

h_r_a= 800;

switch (1)
{
case 1:
if (basicSalary <= 2,50,000)
tax = 0;
case 2:
if (basicSalary > 250000 && basicSalary <=500000)
tax = 0.05*basicSalary;
case 3:
if (basicSalary > 500000 && basicSalary <=1000000)
tax = (0.12)*(basicSalary - 500000) + 12500;
case 4:
if (basicSalary > 1000000)
tax = 1,12,500 + 0.30*1000000;

}

netSalary = basicSalary + DearnessAllow + h_r_a - tax;

cout<<\"\nEmployee Id : \"<

cout<<\"\nEmployee Name : \"<

cout<<\"\nBasic Salary :\"<

cout<<\"\nHRA : \"<

cout<<\"\nDearnessAllow :\"<

cout<<\"\nTax : \"<

cout<<\"\nNet Salary :\"<cout<<\"Do you want to stillcontinue....Y/N\"<cin>>repeat;
}

return 0;

}

Answer & Explanation Solved by verified expert
4.0 Ratings (437 Votes)
    See Answer
Get Answers to Unlimited Questions

Join us to gain access to millions of questions and expert answers. Enjoy exclusive benefits tailored just for you!

Membership Benefits:
  • Unlimited Question Access with detailed Answers
  • Zin AI - 3 Million Words
  • 10 Dall-E 3 Images
  • 20 Plot Generations
  • Conversation with Dialogue Memory
  • No Ads, Ever!
  • Access to Our Best AI Platform: Flex AI - Your personal assistant for all your inquiries!
Become a Member

Other questions asked by students