Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Hi i need help in netbeans application when i run my information i receive an error Learning Objectives: Creating and compiling a basic Java program.
Hi i need help in netbeans application when i run my information i receive an error
Learning Objectives: Creating and compiling a basic Java program. Incorporating the fundamentals of Java programming. Working with primitive data types and arithmetic operators. 1a: This Semester Create a program that outputs your full name on the first line, and a list of the courses you are taking this semester. Include a comment that describes what your program does. 1b: Rectangles Create a program that stores the length and height of a rectangle. Your program must calculate both the area and perimeter of the rectangle and output on the screen. 1c: Celsius To Fahrenheit Converter Create a program that stores a Celsius value, and performs a conversion to Fahrenheit. Your program must output a full sentence with both Celsius and Fahrenheit values to the screen. 1d: Soccer Teams Create a program that stores the total number of soccer players in a variable. Each team must contain 11 players. Output to the screen the number of teams and the number of players that will be left over. le: Test Averages Create a program that stores three test results, calculates and displays the average. 19: Class Statistics Create a program that stores the number of male and female students registered in a class. Your program should output the following: Total number of students: Male students Female students: Percentage of male students: Percentage of female students 1 History 6. 99 OO i/*la *the java program that displays full name and number of courses taking this semester to java console output window/ //Exercise_a.java public class Exercise a 4 public static void main(String[] args) //Set name String fullName="Mark Twain"; /Set number of courses int numCourses2; //print full name and number of courses System.out.printin("Name:"+fullName); System.out.println("Number of courses:"numCourses); L/Exercise bojava public class Exercise_b public static void main(String[largs) declare variables of double type double length: double width; double area; double perimeter; length=10; introja java * Source OCTO //calculate rectangle area area=lenght width; 1/calculate rectangle area perimeter=2*width; //calculate area and perimeter System.out.println("Rectangle area System.out.println("Rectangle perime Blend of the class. /tlc The java program that converts celsi to fahrenheit. */ Exercise cava public class Exercise_ public static void main(String[] args) // set celsius value double celsius=100; declare Fahrenheit a double value double fahrenheit; 1/convert celsius value to fahrenheit value fahrenheit(9.8/5.0) celsius + 32.0; value to Fahrenhet value System.out.println(celsius is equal to fahrenheit fahrenheit ) Exercise introjav java 9 History - *//id /**The java program that finds the number of teams **and number of team players left and print the * *of the program to console output.** 1/Exercise_d.java public class Exercised public static void main(String[] args) // set total players and number of players in a team int totalplayers=50; int numPlayers in Team=11; // calculate the number of teams int numTeams totalPlayersumPlayers in Team; calculate the players left int playersLeft=totalRlayers'snumPlayers In Team; print the number of teams System.out.println("Number of teams:" +numTeams); print the number of players left System.out.println("Number of players left:"playersLeft). } //end of the program Exercise_e.java public class Exercise_e 98 99 public static void main(String[] args) 100 EC 101 O Exercise e o main > mavenproject - Apache NetBeans IDE 112 | O 103 104 story CO 2 uute testscorer double tests.cores2=98; double testscores 3-97; //find the total score double total-testscorel+testscore2+testscore3; //find the average score double average total/3.8; //print the average test score System.out.println("Average score:"average); core:"average); 114 // Exerices_1.java public class. Exercise public static void main(String[] args..). ES GES setate and female students count int maleStudents=25; int femaleStudenta=25; double totalStudents=(maleStudents+femaleStudents); thtoaudents Suomale and female students System.out.println("Total students "totalStudent): System.out.printlnc ale students. tmaleStudents System.out.printlncralestudent femaleStudents) System.out.print Percentagemate students (maleStudents/totalStudents) 108.0; System.out.print Percentage female students 21 (femaleStudents/totalStudents)-100.0); hod 132 133 Od //set male and female students count int maleStudents=25; int female Studenta=25; double totalStudents=(maleStudents+femaleStudents); //print the total students sum of male and female students System.out.println Total students totalStudenti System.out.println("Male students... male Students: System.out.println("Female students femaleStudents): System.out.printf"Percentage et male students (maleStudents/totalStudents)*100.; System.out.printt." Percentage of female students...2 (femaleStudents/totalStudents) *180.0); lend of main method //end of the class 132 133 134 135 Exercise e Output - Run (maven projectl) X com CETOS CCCC COMPILATION ERROR: introjav.java:119,21 class interface, or enum expected intro av. java:139,531; expected introjov.java: 140,621 expected introjav.java: 142,21 classinterface, or enum expected introjav.java: 162,361 ) expected introjavava: 162, 451 expected Run Imavenproject) (1 more) Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started