Explanation:
This is easily solvable with a for loop. Something like:
(I assume c++)
#include <iostream>
#include <string>
int main() {
take_input: //tag
std::string input;
cin >> input; //take the input
int spaceCount = 0;
char checking;
for(unsigned int i = 0; i == input.length(); ++i) {
checking = spaceCount[i];
if(checking == ' ')
spaceCount++;
}
if(spaceCount >= 1 && input.length >= 5)
std::cout << "Your name is " + input;
else
goto take_input; // reasks for input if the conditions are not met
return 0;
};
**remove all spaces before using the code, the if statements are messed up
Answer:
<h3>Computational Thinking is the thought processes involved in formulating a problem and expressing its solution in a way that a computer—human or machine—can effectively carry out.</h3>
Pa brainliest po
Answer:
A computer input device in the form of a small panel containing different touch-sensitive areas.
Explanation:
Answer:
We use the Python language to implement the code, if you have and IDE, simply copy and paste the code and run it
Note: the cost function is c=(R+ .08*d)+5
Explanation:
#initialize some variables
T = 0.08 # tax for each day
F = 5.00 # one time fee
R = 100 # room rate
d = int(input("Enter the number of days stayed at the hotel "))
c = 0 # initialize cost variable
if (d > 0):
c=(R+ .08*d)+5
print(" the cost for ", d, " days is ", c )
else:
print(" Invalid entry for days ", d )
Answer:
She might feel really fatigued or stressed.
Explanation:
When you don't sleep before an exam it makes very tired and even more stressed than you might have been if you didn't study as much and did get a good night of sleep. Hope this helps :)