- Upvotes Received
- 0
- Posts with Upvotes
- 0
- Upvoting Members
- 0
- Downvotes Received
- 4
- Posts with Downvotes
- 2
- Downvoting Members
- 4
14 Posted Topics
Re: hi everyone i'm new to programming and i have to say its fun and frustrating at the same time could anyone help me fix this?? // Exercise5_2.java: Create a method for summarizing digits in an int public class Exercise5_2 { public static void main(String[] args) { // Create a Scanner … | |
[CODE=vb.net]'Radio Choice Selection Console.WriteLine("Please enter the Radio Choice for your vehicle: ") Console.WriteLine("Enter 1 for AM/FM Radio") Console.WriteLine("Enter 2 for AM/FM/CD/DVD") strRadioChoice = Console.ReadLine() Select Case strRadioChoice Case "1" Console.WriteLine("Price : $100") Case "2" Console.WriteLine("Price : $400") Case Else Console.WriteLine("Invalid selection") End Select SellingPrice = BasePrice + strEngineChoice + strInteriorChoice … | |
How would I ask the user to input what type of engine they want and getting an output of $150 [CODE=vb.net]Console.WriteLine("Enter EngineChoice for your vehicle:") Response = Console.ReadLine() EngineChoice = Convert.ToString(Response) If EngineChoice = Sixcylinder Then Convert.ToInt32(Response) Console.WriteLine(150) ElseIf EngineChoice = Eightcylinder Then Console.WriteLine(475) ElseIf EngineChoice = Diesel Then Console.WriteLine(750) … | |
Help! The only thing I seem to not get is the initials from the substring........... any ideas? public class Name { //Data Members private String firstName; private String middleName; private String lastName; private String initials; //Default constructor Name() { firstName = null; middleName = null; lastName = null; } //Constructors … | |
Am I on the right track? Problem: Compute the income tax due on a taxable income entered by the user, given the data as shown on the following table: Taxable Income Tax Due From To $0 $50,000 $0 + 5% of amount over $0 $50,000 $100,000 $2,500 + 7% of … | |
I'm not sure if I did this right... Problem: Using VB.NET write a console application to implement the New Car Price Calculator. Options available for Universal Motor's vehicles: Engine Purchase Code Price 6 cylinder S $150 8 cylinder E $475 Diesel D $750 Interior Trim Purchase Code Price Vinyl V … | |
I need help writing a program that prompts the user for five grades and then provides the user with an average for all grades entered. [code=vb.net]Module Module1 Sub Main() 'Declare Array called AverageGrades with 5 Elements Dim Grades(5) As String 'Write array elements to screen using For loop Dim index … | |
8. create a console application. Insert the below code, and run the program. Note that a conditional statement is used within the body of the loop. This is common. Write a similar program using this one as an example that asks the user to name his or her favorite make … | |
import java.util.Scanner; public class AverageArray { public static void main(String[] args) { final int TOTAL_NUMBERS = 10; int[] numbers = new int[TOTAL_NUMBERS]; float sum; //Create a Scanner Scanner input = new Scanner(System.in); //Read all numbers for (int i = 0; i < numbers.length; i++) { System.out.print("Enter a number:"); //Conver String … | |
hi guys i'm trying to get the sum, average, and the number of values in the array greater than the average... i am new to this and keep getting errors! helllpp.. [code=java]import java.util.Scanner; public class AverageArray { public static void main(String[] args) { final int TOTAL_NUMBERS = 10; int[] numbers … | |
I'm new to JAVA and I can't seem to get this thing down I might be totally off. But I need to do a withdraw and deposit method any ideas?? [code=java]public class Account { private int id; private double balance; private double annualInterestRate; private double withdraw; private double deposit; private … | |
just trying to create a person(or two) using name, age and nationality but its giving me illegal start of expression error // **************************************************************** // Person.java // // Person class with two constructors // *************************************************************** public class Person { private String name; private int age; private String nationality; // ------------------------------------------------------------ // … | |
Hi guys i'm new to programming and i'm supposed to do a sum then average in which the output requests for four numbers from user then takes those #'s add them up and get the average then do a number of values in the array greater than the average is... … | |
Hi everyone I'm new to this. Matter of fact I'm new to programming (period) I'm currently enrolled for two computer science courses and I'm not going to lie its kicking my butt the upper level course anyway. So I'm here to receive any help and tutelage that anyone has to … |
The End.