Answer:
i. Damage of Power adapters that are supplying power from the switch to the computer.
ii. Damage/ Failure of power supply inside the computer.
Explanation:
There could be many possible reasons that computer is not working or power up while pressing power button. Two of them are discussed here.
i. If the power adapters or cords are damaged than computer will not switched on or display or sound any thing on the computer. As power is not reached to computer with the help of cords. In that case just check that, power cords are perfectly installed in computer and power plugs and that are not damaged.
ii. In case computer power supply is damaged then the computer system will not switched on any nothing will be displayed on the screen. The power supply should be replaced.
iii. In case of memory failure the computer will not start.
iv. In case there is power supply to processor fan damaged than computer will not switched on.
Answer:
import java.util.Scanner;
public class BarChart {
public static void main(String[] args) {
Scanner sc=new Scanner(System.in);
//take input from user
System.out.println("Enter Score");
int score=sc.nextInt();
int count=score/10;
int i=1;
//print horizontal bar
//if you want to print vertical bar then simply change into print which is replace by println
while(i<=count)
{
System.out.print("*");
i++;
}
}
}
Explanation:
Answer:
Explanation:
I will go straight to the code, and hope it didn't confuse you.
Here is it
public static void main(String[] args)
int [] x = new int [args.length]
for (int y = 0; y< args.length;yi++)
int[y] = (int) args [y]
Answer:
// CPP program to find type of input character
#include <iostream>
using namespace std;
void charCheck(char input_char)
{
// CHECKING FOR ALPHABET
if ((input_char >= 65 && input_char <= 90)
|| (input_char >= 97 && input_char <= 122))
cout << " Alphabet ";
// CHECKING FOR DIGITS
else if (input_char >= 48 && input_char <= 57)
cout << " Digit ";
// OTHERWISE SPECIAL CHARACTER
else
cout << " Special Character ";
}
// Driver Code
int main()
{
char input_char = '$';
charCheck(input_char);
return 0;
}
Explanation:
// CPP program to find type of input character
#include <iostream>
using namespace std;
void charCheck(char input_char)
{
// CHECKING FOR ALPHABET
if ((input_char >= 65 && input_char <= 90)
|| (input_char >= 97 && input_char <= 122))
cout << " Alphabet ";
// CHECKING FOR DIGITS
else if (input_char >= 48 && input_char <= 57)
cout << " Digit ";
// OTHERWISE SPECIAL CHARACTER
else
cout << " Special Character ";
}
// Driver Code
int main()
{
char input_char = '$';
charCheck(input_char);
return 0;
}