Here's my code for that, consider it under the WTFPL (http://www.wtfpl.net/). Here is a pastebin of the code, as to avoid text formatting. (Link: https://pastebin.com/S3BDGxqm Raw: https://pastebin.com/raw/S3BDGxqm)
package javaapplication6;
import java.util.Scanner;
public class JavaApplication6 {
public static void main(String[] args) {
Scanner myScanner = new Scanner(System.in);
boolean a;
int s;
System.out.println("Enter an int");
s = myScanner.nextInt();
a = hasEight(s);
System.out.println(a);
}
private static boolean hasEight(int s)
{
String str = String.valueOf(s);
return str.contains("8");
}
}
Answer:
See explaination
Explanation:
a.
myString is "Hello the world"
b.
prints "15"
c.
This is invalid.
We have to use strcpy_s to copy strings
FIX:
strcpy_s(s,"Marylane");
d.
reading string upto length 80 from the user and stored it in myString variable
e.
prints the string enetered by user to console
f.
replacing 7th character by 't'
It is a way to show your brand or logo on a video is photo
Answer:
For Rachael to pursue a career in business information management. She is expected to follow the following route one after the other.
1. Training in management skills and data storage
2. Certification in MIS
3. Bachelor's degree in business administration
4. Master's degree in business administration
Hope this helped! ;)