• Log in or sign up for an account here: https://www.sythe.org/login

is anyone a java programmer or is good at very basic java?

Hamouze

Grand Master

$50 USD Donor New
Joined
Feb 24, 2012
Sythe Gold
273
Messages
4,216
In Memory of Jon
Gohan has AIDS
Pokémon Trainer
Poképedia
im in csc 111 and forgot that i have a lab due soon and i m pretty fucked. this is literally basic shit like arrays. if anyone can help me out super quick i will suck ur dick and throw u some bills. pm me if u can help or post here. this is the first prompt so u understand what it's gonna be like:

Part 1. You will be given two separate arrays which contain information about each sales team working for a company – the team names are in one array named teamsArray and the sales generated by each team are in the second array named salesArray.

teamsArray: [ ATL | NYC | CHI | SOCAL | MIA | SLC ]
salesArray: [ 422150.00 | 1125200.00 | 315686.00 | 654390.00 | 522879.00 | 987653.00 ]

You should assume that sales values are doubles.

Your task is to report the city abbreviations and sales for teams that had at least $500,000.00 in sales.

For the data above, the expected solution is:

NYC: $1125200.00
SOCAL: $654390.00
MIA: $522879.00
SLC: $987653.00

NOTE: In order to print the dollar values with two decimal places you'll need to use an alternative to System.out.println() named System.out.format() as follows:

System.out.format( "%s: $%.2f\n", teamsArray, salesArray );

Part 2. If no sales team meets the $500,000.00 threshold, your program should print a message that reads:

No teams met expectations. Might want to sell your stock.

In this case the output would read as follows:

Sales teams meeting expectations:
No teams met expectations. Might want to sell your stock.














import java.util.Scanner;

public class Main {
public static void main(String[] args) {

int i;
int numberOfTeams;
String[] teamsArray;
double[] salesArray;

// THIS CODE UP TO THE ---- READS IN THE TEAM AND SALES INFORMATION
Scanner scnr = new Scanner(System.in);
numberOfTeams = scnr.nextInt();

teamsArray = new String[numberOfTeams];
salesArray = new double[numberOfTeams];

for (i = 0; i < numberOfTeams; ++i) {
teamsArray = scnr.next();
salesArray = scnr.nextDouble();
}
// ----


// STUDENT CODE SHOULD GO HERE

}
}
 
In Memory of Jon
Gohan has AIDS
Pokémon Trainer
Poképedia
i swear to god i am in desperate need of some help rn i'll do whatever it takes pls my grade depends on this
 
In Memory of Jon
Gohan has AIDS
Pokémon Trainer
Poképedia
s/o to my main mans @Jiwi, got the biggest dick in the game
 
Nitro Booster
CoolHam
Sythe Awards 2017 Winner
Two Factor Authentication User
Discord Verified
Toast Wallet User
anArray = new String[10];

anArray[0] = kys;
anArray[1] = killyourself;
anArray[3] = kys;
anArray[4] = killyourself;

//this code adds the second array that is needed.
for (i = 0; i < anArray; i++) {
System.out.println(
anArray);
}

here the solution, I did this with no compiler or didn't test it, so yeah kill yourself

String[] anArray = new String[5];

anArray[0] = "kys";
anArray[1] = "killyourself";
anArray[3] = "kys";
anArray[4] = "killyourself";

//this code adds the second array that is needed.
for (i = 0; i < anArray.length; i++) {
System.out.println(anArray);
}

ftfy
 
Two Factor Authentication User
just get blupig to do it for ya

Anyway if you excuse me i gotta go squat 3p to cleanse myself of this geeky shit. Pce
 
Valentine's Singing Competition Winner
Sythe Awards 2015 Winner
Sythe Awards 2016 Winner
Sythe Awards 2020 Winner
Member of the Month Winner
MushyMuncher
Gohan has AIDS
Extreme Homosex
World War 3
I'm LAAAAAAAME
Discord Verified
Off Topic Participant
haha i know how to code html and some java-scripts if u ever need a cool software!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
hello world, am i right?????????????????????????????????????
 
Two Factor Authentication User
haha i know how to code html and some java-scripts if u ever need a cool software!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
hello world, am i right?????????????????????????????????????
Honestly bud you good?
 
In Memory of Jon
Gohan has AIDS
Pokémon Trainer
Poképedia
Write a program named "BlindMansBluff.java" that automatically draws two cards, one for the dealer and one for the player. The program wlil show the value of the dealer's card but not the player. The player will choose one of three options: (1) Over, (2) Under, or (3) Equal. Then the program will show the value of the player's card and then show whether the player's card is greater than, less than, or equal to the value of the dealer's card.

The program must implement a class named "Cards" (written by you) named "Cards.java" that will have: 1) a private integer member named "myValue", 2) a constructor, 3) a member public method named "draw" that sets myValue to a (pseudo-)randomly generated integer between 1 and 13 and returns that value, and 4) a method that takes in a "Cards" object and returns 1, -1, or 0 depending on whether host's Cards object is greater than, or equal to the value of the parameter Cards Object.

One example output might be:
Dealer has a 6. Is your card (1) Over, (2) Under, or (3) Equal?
2
You have a 9. You lose.



can anyone do this? pm me NOW NOW NOW
 
Runescape Gamblingrunescape gambling
Back
Top