32,199 Topics

Member Avatar for
Member Avatar for sujoy98

import java.util.Scanner; class bank{ public void termDeposit(){ int principle; double rate,years; Scanner sc=new Scanner(System.in); System.out.print("Enter Principle Amount : "); principle = sc.nextInt(); System.out.print("Enter rate od interest : "); rate = sc.nextDouble(); System.out.print("Enter time period in years : "); years = sc.nextDouble(); double maturityAmount = (principle*(Math.pow(1+(rate/100),years))); System.out.println("Maturity Amount after " +years+ …

Member Avatar for sujoy98
0
200
Member Avatar for Massimo_2

I have a problem: I can't get the correct answer from the webservice. The two parameters are correct and the source seems to me to be correct. The system does not require authentication ... What am I doing wrong? <? try { $wsdl = "http://wsr.brt.it:10041/web/GetIdSpedizioneByRMNService/GetIdSpedizioneByRMN?wsdl"; $client = new SoapClient($wsdl); $result …

Member Avatar for pritaeas
0
15
Member Avatar for MagnusTheRed90

I have a class which is sort of like a repository, and every time I write to the zip archive using this command, the prior activity is overwritten. /// <summary> /// Insert file into existing archive file. /// </summary> /// <param name="fullPath"></param> /// <param name="stream"></param> public void InsertIntoFile(String fullPath, Stream …

Member Avatar for MagnusTheRed90
0
96
Member Avatar for Nirmen

How can I solve this ? implement java program, green land zoo park has four types of animals, elephants that drink water, monkeys that eat bananas, flamingo that fly, and lions that eat meat, using your understanding of inheritance

Member Avatar for rproffitt
0
131
Member Avatar for polpo

Hi, how i can do translator a word offline to frensh in english in java i find Moses,stanford phrasal .. but i can't find a simple example for understand i need help please and thanks

Member Avatar for rproffitt
0
30
Member Avatar for samuella11

The solution of the problem includes modeling and realization of the process of issuing cash receipts in a store. It is necessary to create classes that store and manipulate information about: store; cashier in a store; goods in a store; cash register in a store; a receipt that is issued …

Member Avatar for rproffitt
1
37
Member Avatar for Flashints
Member Avatar for Shana_2

I'm new to Android Studio and Java and I'm trying to display a dynamic battery percentage on multiple activities, but it is only showing on the main screen. I am also trying to do the same thing with displaying time. I am trying to get it work with my second …

Member Avatar for rproffitt
0
181
Member Avatar for Giselle_1

I've created a method that requests input for a grading and would like 0 to be a valid input result. But my code doesn't allow it? Can anyone help? public int getValidModuleMark3 () { Scanner input = new Scanner(System.in); int mark; System.out.println ("Enter number of compensentable failed credits in range …

Member Avatar for tinstaafl
0
110
Member Avatar for mr.matrix251
Member Avatar for rproffitt
0
122
Member Avatar for Giselle_1

I need with with a section of my assignment where it asks to take four first attempt module results (i.e. all module average, ISM module average, number of compensentable failed credits and number of outright failed modules) as parameters and returns the degree classification (e.g. “distinction”, “merit”, “pass” or “fail”). …

Member Avatar for tinstaafl
0
336
Member Avatar for Demetrius

[COLOR=Indigo]Hey I'm pretty new to C++. I'm taking a class on it now but I don't know how to make sounds in C++... I've done QBasic so I have a little programming background. I'm right now thinking of what to do for a program, and it largely depends on if …

Member Avatar for k191376
0
15K
Member Avatar for Chua_1

I am trying to get the text entered from jtf3 and jtf4 to show in the Message Dialog str1 and str2. Error states that the symbol fot str1 and str2 cannot be found. Please advice. class ChuaWeiheng extends JFrame { private final JLabel jl, jl1, jl2, jl3, jlimage; private final …

Member Avatar for JamesCherrill
0
112
Member Avatar for Lev_3

Hello people! :) I'm quite new in the programming world. I'm really interested in programming from the time I found that there's coming a game called Hytale, and **I would love to be able to make mods for it**. So basically I have a book that should introduce me to …

Member Avatar for hussainmujtaba
0
921
Member Avatar for Violet_82

Hi guys, I was trying to test a method which takes a user input, does something and then returns that input but I'm having some issues with it. I've attempted a few solutions, mostly described in SE, I will leaave them out of this post and discuss instead the one …

Member Avatar for Violet_82
0
3K
Member Avatar for Nur_13

hai i need help,my lect ask to do assignment and the question are do insert,delete,edit and print output for queue and stack.everthing is okay until i got stuck how to do edit in queue and stack......someone please help me.thanks in advance

Member Avatar for JamesCherrill
0
87
Member Avatar for Laluna

Hi all, I am Luna. I am pretty new here so please be patient with me. I go to a lot of concerts, but my favorite singer is Travis Scott. I'm currently studying to be a Merchandise manager which is what I've always wanted to do. I think the one …

Member Avatar for Reverend Jim
0
143
Member Avatar for Janezz

As one of the most powerful tools in Excel, PivotTable has the ability to calculate, summarize, and analyze data, which allows us to see the comparisons and trends of our data more intuitively. In addition, PivotTable also has the ability to sort and filter data, and it can meet our …

0
415
Member Avatar for Usoop
Member Avatar for may5457

I keep getting CircleInformation.java:13: error: cannot find symbol float circumference = 2 * (PI * radiusF) ^![Screen_Shot_2020-04-20_at_2_19_38_PM.png](/attachments/large/4/dc19daf5031100026891115972a1d2a2.png)

Member Avatar for JamesCherrill
0
706
Member Avatar for Andrew_62

When i run my code i get this error: Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: How do I fix this? this is my code so far: import java.awt.Font; import javax.swing.*; public class Program7 public static void showOutput(String output) { JTextArea jta = new JTextArea(output); jta.setFont(new Font("Consolas", Font.PLAIN, 60)); JOptionPane.showMessageDialog(null, jta); } …

Member Avatar for Dani
0
440
Member Avatar for Hisham_3

Hi, I want someone to explain this code ( method ), and how it works.؟؟ Especially the process of moving the elevator // The elevator class draws the elevator area and simulates elevator movement class Elevator extends JPanel implements ActionListener { // Declaration of variables private Elevator_Simulation app; // Elevator …

Member Avatar for Hisham_3
0
263
Member Avatar for Chua_1

I am trying to sort my array to print it out according to the suits e.g. S10, S6, H11, C4, D10 etc. I have tried adding Arrays.sort but it doesnt work. Please advice. private void transfer2D(String[][] twoD, String[] strArray) { int i = 0; for( int suit = 0; suit …

Member Avatar for JamesCherrill
0
114
Member Avatar for Chua_1

I am trying to get my private void transfer method and pass it into a 2D array transfer2D method, after which I am able to print it out using the print2D_1 method. I am also trying to sort the array from the highest suit to the lowest suit followed by …

Member Avatar for JamesCherrill
0
203
Member Avatar for ButcherHix
Member Avatar for Hisham_3

Hello everyone, I have some problems with my program , hope you can help me to solve it. 1- I need a method for the** Clear Time** button that remove the counter to be 0. ` private void btclearActionPerformed(java.awt.event.ActionEvent evt) { // TODO add your handling code here: min=0;sec=0; lblsec.remove(lblsec); …

Member Avatar for Hisham_3
0
805
Member Avatar for Binisha

i am stuck at aparticular place and cant help myself. my professor asked me to built a notepad using .io and .awt pakages only and i am unable to do the save function in the notepad can anyone please help me

Member Avatar for tinstaafl
0
88
Member Avatar for tinstaafl

There are times when you need to make sure your counter starts at an odd or even number. Even is pretty simple - `counter = counter + modulus(counter)`. If counter is even it stays, if it's odd it gets incremented by 1. Odd is a bit more complicated - `counter …

Member Avatar for holisticgroup19
3
4K
Member Avatar for Uğur Kaan

where theuser tries to guess a 3 digit target number Whenthe user guesses a number, the computer • Prints k `+' if the guessed number has k same digits as the target number and also in their correct positions.

Member Avatar for rproffitt
0
123
Member Avatar for student_6

The End.