842 Recommended Topics
Remove Filter | |
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+ … Software Development java | |
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 … | |
How can I show a div when menu item is clicked in angular? The Div show fine when I click list item, but dsn't disappear when I navigate to other menu items. <li><a class="nav-link slots" (click)="showme = true" >Slots</a> <div ng-hide="showme"> <div class="ribbon" *ngIf="game.categories[0]"> <span>TOP</span> </div> <div class="ribbon" *ngIf="game.categories[2]"><span>NEW</span></div> </div> … Software Development | |
I have a list of tuples where each tuple within the list contains 3 elements. 1. Is the year in 4 digits i.e 2014 2. Month in integer i.e from 1-12 3. And another integer value which is the number of months needed to be subtracted. So if the date … Software Development python | |
| ,can anyone help me to find what's the problem with this programming code! it's work so well !but there two methoods didn't work ((the max salary method and sum salary )) at (main)... Especially the output results . there's no errors \\ i have no idea how to solve it … Software Development c++ |
Hi all pls help me with the soln to this probelm, the catch is the interface (menu) needs to be Built in C++ as well. any suggestions would be of great help as well. thanks It is a system written using a structured programming language (e.g. C, Turbo C) that … Software Development c++ | |
Hi i am getting the following error in a php program i am using PHP Warning: A non-numeric value encountered in xxxxxxx db_connect.php on line 60 // find age if(! function_exists('Age') ) { function Age($birthdate) { return date("Y") - substr(trim($birthdate),-4,4); //// THIS IS THE LINE FOR THE SAID ERROR } … Software Development php | |
hi,I'm trying write a AI calculator program on Python ,can help me how to start write this coding Software Development python | |
Hello! I am creating a turtle code where I want to create multiple circles on a map. However, my turtle is currently coninuing to go around in a circle over and over again, and so the other circles cannot happen. Any help or advice will be greatly appreciated! Thanks! This … Software Development python | |
Hi all I Have a CalendarvProject with a 3rd party Calendar control. the application was working fine untill I upgraded the Calendar Control . When I opened the solution two references were no longer availabe, so I had errors. One of the references was ExtremeCalenderControl the other AxXtremeCalendarControl. I was … Software Development vb.net | |
which code can i use to make enemy shoot at the player non stop and when the bullet catches the player the health decreases any kind of help i appreciate - pygame Software Development python | |
Hi, This is my first time using vectors. I'm trying to print some data that is stored in a structure vector but whenever the code gets to printing the data which is in double loop it crashes. I have located the error but i am ensure how to resolve it. … | |
I am doing a project that must convert each string in X to an integer and save it in the corresponding location in Y. A dollar sign is used to mark the end of a string. I have 90% of the code, but it only works for the first string … Software Development assembly | |
Hi, guys i am trying to create a String in the Windows Registry to imput some nice Proxy Adress. But i failed to input the correct datatype. I do not have any problems with Type (DWORD)... But (REG_SZ) has not work. Can someone tell me how can i input in … Software Development c++ | |
I have downloaded visual studio 19 and need advise on tutorial for beginers. I tried one tutorial and I think it was made for an older version of the program since it said things woul look a certain way but they did not. Software Development first-post visual-studio | |
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”). … Software Development java | |
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 … Software Development android-development java | |
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 … Software Development java | |
[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 … | |
I'm doing a small antivirus software in VB.NET, which uses MD5 hashes to scan through the files from a computer. However, I noticed if I add more hashes into the text file which is used for the scan process, the form becomes unresponsive and crashes afterwards. I've tried doing this … Software Development visual-basic | |
I want to create a triangle with Windows Form in Visual Studio (c# code). In Form1 I have 3 textboxes that the user enters the lengths of the sides of the triangle and 1 "Enter" button. When the button is pressed, Form2 is opened and a triangle is drawn when … Software Development visual-studio | |
Hello everyone, I have a problem with my app when closing the gui-UI, that is developed in PyQt5. In my app I have 3 discrete threads and one of it using slot-signals for communicating with the gui. The problem I have is that when I close the gui, and the … Software Development multithreading python | |
#include<iostream> #include<conio.h> //using namespace std; int main() { char name[30], pizza1[]="Chicken Fazita" ,pizza2[]="Chicken Bar BQ" ,pizza3[]="Peri Peri" ,pizza4[]="Creamy Max", roll1[]="Chicken Chatni Roll", roll2[]="Chicken Mayo Roll", roll3[]="Veg Roll With Fries",bur1[]="Zinger Burger",bur2[]="Chicken Burger",bur3[]="Beef Burger"; char sand1[]="Club Sandwich", sand2[]="Chicken Crispy Sandwich", sand3[]="Extream Veg Sandwich"; char bir1[]="Chicken Biryani", bir2[]="Prawn Biryani", bir3[]="Beef Biryani",gotostart ; int … Software Development c++ | |
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); } … Software Development java | |
Hi Guys. I'm getting bored, and so I'm looking at Python for a new challenge. I hoped to be able to use my Java NetBeans IDE to avoid an IDE learning curve, but it seems that NetBeans support for Python died years ago. So, all you Python gurus... what do … | |
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) Software Development java | |
Guys, What is wrong with my compution here when "hrs" entered is 45? The end result expected si 498.75 but it keeps failing to compute second portion correctly (please see below and attached screenshot). hrs = input("Enter Hours:") h = float(hrs) OvrTimehrs = float(hrs) - float(40) HourlyRate = input("Enter Hourly … Software Development python | |
I'm looking for a way to attach listener to a C# variable, so that every time its updated or read, it will execute a function which will go on and process their own variables. I know of the means described below but I'm looking for something that would work like … Software Development | |
Hi, I have one form with multiple reading data (using BindingSource) and I want to store those data + some text entry to third table (also using BindingSource DataGrid) Is it possoble to do that using sql statement ? I have connection to database. Picture is to show what I … Software Development | |
Hi everyone, I am working on an app and trying to create a corrector and I am using keyboard module for the correction. I have created a class, which reads pressed events and displays them to screen, and its action are dependent to a variable passed to the constructor. If … Software Development multithreading python |
The End.