Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

package electronicgame; public class CLECompetitor { public static void main(String[] args) { private String competitorsname; private int competitorsnumber; private String competitorsfulldetails; int[] levelsofcompetitor = {1,2,3,4,6,7,8,9,10,11};

package electronicgame;

public class CLECompetitor {

public static void main(String[] args) { private String competitorsname; private int competitorsnumber; private String competitorsfulldetails; int[] levelsofcompetitor = {1,2,3,4,6,7,8,9,10,11}; private int OverallScore; private int ShortDetails() int[] ArrayScores = {1,2,3,4,5}; private int initials; fulldetails = competitor number two("Competitor number 50, name Peter Phillip Johnson, country UK Peter is difficulty level is level 3 aged 21 and has an overall score of 2."); fulldetails.competitorsfulldetails; fulldetails = competitor number one ("Competitor number 30, name Craig Thompson, country UK Craig is difficulty level is level 1 aged 21 and has an overall score of 4."); fulldetails.competitorsfulldetails; fulldetails = competitor number two("Competitor number 50, name Steven Jordan Rodgers, country UK Steven is difficulty level is level 3 aged 21 and has an overall score of 5."); fulldetails.competitorsfulldetails; fulldetails = competitor number one ("Competitor number 30, name Rachel Lye Noel, country UK Rachel is difficulty level is level 1 aged 21 and has an overall score of 2."); fulldetails.competitorsfulldetails; fulldetails = competitor number two("Competitor number 50, name Hilary Clark Jenkinson, country UK Hilary is difficulty level is level 3 aged 21 and has an overall score of 5."); fulldetails.competitorsfulldetails; fulldetails = competitor number one ("Competitor number 30, name Hannah Louise Clarkson, country UK Hannah is difficulty level is level 1 aged 21 and has an overall score of 4."); fulldetails.competitorsfulldetails; fulldetails = competitor number two("Competitor number 50, name Muhammed Hussain Harpreet, country UK Muhammed is difficulty level is level 3 aged 21 and has an overall score of 2."); fulldetails.competitorsfulldetails; fulldetails = competitor number one ("Competitor number 30, name Christian Precious Newby, country UK Christian is difficulty level is level 1 aged 21 and has an overall score of 3."); fulldetails.competitorsfulldetails; fulldetails = competitor number two("Competitor number 50, name Lamar Adams Walker, country UK Lamar is difficulty level is level 3 aged 21 and has an overall score of 3."); fulldetails.competitorsfulldetails; fulldetails = competitor number one ("Competitor number 30, name William Deans Smith, country UK William is difficulty level is level 1 aged 21 and has an overall score of 3."); fulldetails.competitorsfulldetails; fulldetails = competitor number two("Competitor number 50, name Christopher Wicketts, country UK Christopher is difficulty level is level 3 aged 21 and has an overall score of 4."); fulldetails.competitorsfulldetails; }} } } { this.competitorsinitials = initials this.competitorsnumber = scoreline; this.competitorsname = class; this.competitorsnumber = scoreline; this.competitorsfulldetails = fulldetails; this.getOverallScore = Overalll Score; this.getScoreArray = ArrayScores(0-5); this.ShortDetails(om,this.competitorsnumber, this.OverallScore) }

//Return model public String a getFullDetails() { this.competitorsfulldetails(); System.out.println(this.competitorsfulldetails); } //Object Oriented Design and Programming //set value of model public String getShortDetails() { getShortDetails.competitorsfulldetails(int initials, string competitorsname, competitorsnumber ); System.out.println(this.getShortDetails(); } public void setShortDetails(int tankSize) { this.competitorsfulldetails = fulldetails; } public String setFullDetails() { this.competitorsfulldetails = fulldetails; } public void getArrayScores(ArrayScores); int[] ArrayScores = {1,2,3,4,5}; double levelofcompetitors = [0];

for (double levelofcompetitors: ArrayScores) { ArrayScores += levelofcompetitors; }

double average = levelofcompetitors / ArrayScores.length; System.out.format("The average is: %.2f", average); } } can you help me please my program has a lot of errors and I dont know why

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Financial management theory and practice

Authors: Eugene F. Brigham and Michael C. Ehrhardt

12th Edition

978-0030243998, 30243998, 324422695, 978-0324422696

Students also viewed these Programming questions