I believe the answer is keep the target audience in mind
Answer:
See explaination
Explanation:
#include <iostream>
using namespace std;
int main()
{
float marks;
cout<<"Enter your grade value :";
cin>>marks;
if(marks>=90)
cout<<"Your grade is 'A'";
else if(marks>=80&& marks<90)
cout<<"Your grade is 'B'";
else if(marks>=70&& marks <=80)
cout<<"Your grade is 'C'";
else if(marks>=60&& marks <70)
cout<<"Your grade is 'D'";
else
cout<<"Your grade is 'F'";
}
Answer:
import java.util.Scanner;
public class num5 {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
System.out.println("Enter one the numbers - 1, 2, or 3.");
int num = in.nextInt();
switch (num){
case 1:
System.out.println("one");
break;
case 2:
System.out.println("two");
break;
case 3:
System.out.println("three");
break;
default:
System.out.println("Error");
}
}
}
Explanation:
- Using Java Programming Language
- User Scanner Class to prompt, receive and store user's input
- Use a switch statement with three cases as required by the question to output one, two or three
- Use the default statement to handle any other case
Answer:
I love them :) im full on weird and funny thanks for posting these
Explanation:
What is this? i’m not sure what i’m looking at