🔒 Closed 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

Status
Not open for further replies.

Elecit23

Eternal Poster
2321312.webp
 
#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
 
Status
Not open for further replies.

About this Thread

  • 4
    Replies
  • 748
    Views
  • 3
    Participants
Last reply from:
Elecit23

Trending Topics

Online now

Members online
322
Guests online
1,261
Total visitors
1,583

Forum statistics

Threads
2,274,131
Posts
28,953,802
Members
1,235,093
Latest member
lauralice12
Back
Top