What's new

Pa help naman po sa c++ assignment ko kahit mag bigay lang po kayo idea on how to make the else if nito po tyia <3

Hash1rama

Established
Joined
Oct 8, 2017
Posts
51
Reaction
6
Age
19
2321312.jpg
 

Attachments

#include <iostream>

using namespace std;

int main()
{
int SHSAve;
string Track;

cout<<"Enter the track you enroll during SHS: ";
cin>>Track;
cout<<"";
cout<<"Enter your Grade during SHS: ";
cin>>SHSAve;
cout<<"";
cout<<"";

if((Track == "STEM"||Track == "TECHVOC") && SHSAve >= 85)
{
cout<<"Course Allowed to Enter: BSIT";
}
else if(Track == "HUMMS" && SHSAve >= 85)
{
cout<<"Course Allowed to Enter: BSP";
}
else if(Track == "STEM" && SHSAve >= 90)
{
cout<<"Course Allowed to Enter: BSECE";
}
else if((Track == "STEM"||Track == "TECHVOC"||Track == "HUMMS") && SHSAve >= 80)
{
cout<<"Course Allowed to Enter: BSE or BSHRM";
}
return 0;
}

#include <iostream>

using namespace std;

int main()
{
int SHSAve;
string Track;

cout<<"Enter the track you enroll during SHS: ";
cin>>Track;
cout<<"";
cout<<"Enter your Grade during SHS: ";
cin>>SHSAve;
cout<<"";
cout<<"";

if((Track == "STEM"||Track == "TECHVOC") && SHSAve >= 85)
{
cout<<"Course Allowed to Enter: BSIT";
}
else if(Track == "HUMMS" && SHSAve >= 85)
{
cout<<"Course Allowed to Enter: BSP";
}
else if(Track == "STEM" && SHSAve >= 90)
{
cout<<"Course Allowed to Enter: BSECE";
}
else if((Track == "STEM"||Track == "TECHVOC"||Track == "HUMMS") && SHSAve >= 80)
{
cout<<"Course Allowed to Enter: BSE or BSHRM";
}
return 0;
}
Pacheck po pero hindi ko sure hehehe :) sana makatulong
 
Top