Answer:
down below
Explanation:
score = input() # gets student's score input
max = input() # gets max number
percent = (score/max)*100 # multiply by a hundred to get percentage
if percent > 52: # checks if percent is greater than 52
print("well dont you have at least a grade 5")
else # if percent is less than or equal to 52 it will print this instead
print("Unlucky, you need to revise more for the next test.")
THIS PART IS NOT CODE:
make sure you indent/tab the print statements or else you'll get an error
Answer:
B
Explanation:
This feels like an error on the question issuer's part.
The absolute time would be most similar to a fact. It was theorised and in fact, approved by scientists as a scientific law which governs, according to Wikipedia, as a "<span>true and mathematical </span>time<span>, of itself, and from its own nature flows equably without regard to anything external, and by another name is called duration: relative, apparent and common </span><span>time."</span>
Its a monitor otherwise the screen on a computer
Answer:
<em>import java.util.Scanner;</em>
<em>public class ANot {</em>
<em> public static void main(String[] args) {</em>
<em> Scanner in = new Scanner(System.in);</em>
<em> System.out.println("Please enter a string of words");</em>
<em> String n = in.nextLine();</em>
<em> int count = 0;</em>
<em> for (int i=0; i<n.length(); i++){</em>
<em> if((n.charAt(i) != '.') &&(n.charAt(i) != ',') && (n.charAt(i) != ' ')){</em>
<em> count++;</em>
<em> }</em>
<em> }</em>
<em> System.out.println(count);</em>
<em> }</em>
<em>}</em>
Explanation:
- Prompt User to input the string and assign to a variable
- SET count =0.
- Using a for loop iterate over the string
- if((n.charAt(i) != '.') &&(n.charAt(i) != ',') && (n.charAt(i) != ' ')) then count =count +1.
- PRINT count.