No audio through speakers but headphones work fine
1,587
After launching alsamixer in a terminal:
- left/right arrows key to move around faders,
- up/down arrows to increase volume (speaker in your case)
- "m" key to mute/unmute
- Press F6 to select another soundcard (modern pc often have one more soundcard for HDMI output, sometimes the main soundcard if the second one)
If you have no luck, try to run and share Alsa-info script as explained here:
https://wiki.ubuntu.com/Audio/AlsaInfo
Related videos on Youtube
Author by
DeathMaster001
Updated on September 18, 2022Comments
-
DeathMaster001 over 1 year
This is my first question on this site.
Anyways i'm making a program that will prompt the user for how many grades to enter. Then prompt the user to enter grades between 0 and 100 and store them in a array. Finally traverse the array to find the highest grade entered and display it to the user.
The problem i'm encountering is i have no clue on how to traverse through an array to compare two indexs in a array.
import java.util.*; public class HighestGrade { public static void main(String[] args) { //Declare and Initialize Arrays and Scanner Scanner scan = new Scanner(System.in); int num = 0; int[] array1; int highestgrade = 0; //Prompt user on how many grades they want to enter System.out.print("How many grades do you want to enter: "); num = scan.nextInt(); array1 = new int[num]; for(int i = 0; i < array1.length; i++){ System.out.print("Enter grade out of 100: "); array1[i] = scan.nextInt(); } //Traverse the array to find the highest grade entered for (int i = 0; array1[0] < array1[i]; i++){ System.out.print("Higher"); } //Display the results to the user System.out.print("The highest grade is " + highestgrade + "."); //Close scanner scan.close(); } }
-
klutt over 6 yearsYou should read about arrays. docs.oracle.com/javase/tutorial/java/nutsandbolts/arrays.html
-
DeathMaster001 over 6 yearsi'll try the link thanks for the help
-
-
aa8y almost 10 yearsI did do that. I'll get you the output of the script.
-
aa8y almost 10 yearsI didn't run it yet, but check Edit 2
-
Juan Carlos Mendoza over 6 years@DeathMaster001 please read: What should I do when someone answers my question?.