Ur name and password for it
Answer:
I would want my blinking pattern to be red first, followed by green, yellow, orange, white, purple, and cyan.
Explanation:
Answer:
Explanation is in a file
Socratic
Explanation:
Answer:
C++.
Explanation:
int main() {
int off_cost = 50;
int on_cost = 100;
float discount = 0.1;
string season = "off season";
///////////////////////////////////////////////////////////////////////////
int no_of_rooms = 0;
cout<<"How many rooms? ";
cin>>no_of_rooms;
cout<<endl;
///////////////////////////////////////////////////////////////////////////
float total_cost = 0;
if (season == "off season") {
if (no_of_rooms > 5) {
total_cost = (no_of_rooms * off_cost) - ((no_of_rooms * off_cost) * discount);
// With tax
// total_cost = total_cost + (total_cost * <em>fraction</em>);
}
else
total_cost = (no_of_rooms * off_cost);
}
///////////////////////////////////////////////////////////
else {
if (no_of_rooms > 5) {
total_cost = (no_of_rooms * on_cost) - ((no_of_rooms * on_cost) * discount);
// With tax
// total_cost = total_cost + (total_cost * <em>fraction</em>);
}
else
total_cost = (no_of_rooms * on_cost);
}
///////////////////////////////////////////////////////////////////////////
cout<<"Total cost = "<<total_cost;
return 0;
}