TRENDING NEWS

POPULAR NEWS

Rating Website Programing Help

Need C++ Programming Help?

Write a function that computes future investment value at a given interest rate for a specified number of years. The future investment is:
double acummulatedValue=initialInvestment * pow(1+monthlyInterestRate, numberOfYears*12);

Using the following function header:
double futureInvestmentValue(
double investmentAmount, double monthlyInterestRate, intYears)

For example, futureInvestmentValue(1000, 0.05/12, 5) returns 12833.59

Write a test program that prompts the user to enter the investment amount(e.g. 1000) and the interest rate(9%), and print a table that displays the future value for the years from 1 to 30.

The amount invested: 1000
Annual Interest Rate: 9%

Years -------------- Future Value

1 ---------------------- 1093.8
2----------------------- 1196.41
...
29--------------------- 13467.25
30--------------------- 14730.57

Java Programming help.?

import java.util.Scanner;

public class Assignment4
{
public static void main(String[] args) {
String myName = "your name here!!!!";
System.out.println("my name is " + myName);

try {
// collect user input
Scanner myScanner = new Scanner(System.in);
System.out.print("enter the original price: ");
double origPrice = myScanner.nextDouble();
System.out.print("enter the percent markup (like 50 for 50%): ");
double percentMarkup = myScanner.nextDouble();
System.out.print("enter the percent tax rate (like 5 for 5%): ");
double percentTax = myScanner.nextDouble();

// calculate derived values
double markup = roundCents(.01 * percentMarkup * origPrice);
double tax = roundCents(.01 * percentTax * (origPrice + markup));
// Note: capturing and rounding to nearest cent here for both markup
// and tax ensures consistency in later reporting

// output data and results...
System.out.println(
"\noriginal price is " + dollarfy( origPrice ) +
"\nthe percent markup is " + percentMarkup + "%" +
"\nthe marked up price is " + dollarfy( markup + origPrice ) +
"\nthe percent tax rate is " + percentTax + "%" +
"\nthe sales tax is " + dollarfy( tax ) +
"\nthe total price is " + dollarfy( tax + markup + origPrice )
);

}
// really should take the time to figure out which exception classes to
// expect and handle them explicitly - catching Exception, Error, or
// Throwable is generally a sign of laziness except at the very lowest
// frame in the call stack
catch (Exception e) {
System.out.println("\nsomething went wrong!\n\n" + e.toString());
e.printStackTrace();
}
}

// round to nearest whole cent (.5 or greater rounds up)
protected static double roundCents( double d ) {
return .01 * ((int) (.5 + 100*d));
}
// convert double to String as dollars and cents with dollar sign
protected static String dollarfy( double d ) {
// convert to cents String - forces trailing zeroes, if needed.
String sd = "" + (int) (100*d);
return "$" + sd.substring(0, sd.length() - 2) +
"." + sd.substring(sd.length() - 2);
}
}

Simple java programming. help!?

// i hope this helps you understand the java programming language,
// and you can use pieces of this program to build more complex
// programs. please use your class instructor as a resource too; good luck!

import java.util.Scanner;

public class Homework {
public static void main(String [ ] args){
// scan input from keyboard
Scanner scanner = new Scanner(System.in);
// variable declarations
String name = null;
int employeeCount = 0;
float rate = 0, hours = 0;
/*
i think it's supposed to have some memory
to keep the detail...
*/
double gross = 0, net = 0, totalGross = 0, totalNet = 0;
while (true) {
System.out.println("Enter employee's name (or 9999 to quit): ");
name = scanner.next();
if (name.equals("9999")) { // sentinel
break;
}
employeeCount = employeeCount + 1;
System.out.println("Enter hourly wage rate: ");
rate = scanner.nextFloat();
System.out.println("Enter number of hours worked: ");
hours = scanner.nextFloat();
if (hours > 40) { // overtime formula
hours = 1.5f * hours - 20;
}
gross = hours * rate;
net = gross * (1-.03625);
totalGross = totalGross + gross;
totalNet = totalNet + net;
System.out.println(name + " gross pay = " + gross + " net pay = " + net);
}
System.out.println("Total gross = " + totalGross + " Total net = " + totalNet);
System.out.println("Average gross = " + totalGross / employeeCount + " net pay = " + totalNet / employeeCount);
}
}

C++ programming help please?

Error #1

change this

double basal (double weight);
return 70 * pow ((weight/2.2, .756));

to this

double basal (double weight)
{
return 70 * pow ((weight/2.2), .756);
}

--------------------------------------...

Error #2

change this

double physical (double weight, double minutes, double intensity);
(return (.0385 * intensity * weight * minutes);

to this

double physical (double weight, double minutes, double intensity)
{
return (.0385 * intensity * weight * minutes);
}

--------------------------------------...

Error #3

change this

totalCal* = 1.1;

to this

totalCal*= 1.1;

--------------------------------------...

Error #4

You never declared the "continues" variable in your code

-----------

So try this code. It compiles, but i dont know if it does what you want it to (i only corrected the compile errors)

http://codepad.org/baQzv6KR

I need help with C programming, I'm very confused.?

You want to make a function called parkingCharge(). The parking charge will take two inputs into consideration to determine what amount to charge. This is the type of vehicle and the hours parked.

So get rid of the code in your main() and make a function above it called parkingCharge. It will return the amount owed, so an int value, and take the vehicle type as a char parameter and the number of hours it has been parked as an int parameter. So your function prototype should look like this:
int parkingCharge(char type, int hours)

Your idea of using if statements to return the correct charge works, however, a switch statement would probably be better. Anyways use what you have, you want your if to return the rate * the hours input. So one would look something like this:
if (type == 'c') return 2*hours;

To cover all control paths after the three if statements put something like return 0; so if none of the conditions match it will still return a value.

Call the function like this: parkingCharge('c', 4)

That will return the charge for a car parked for four hours. You should be able to figure it out from here.

Which programming language is better for web programming?

Get Your any type of programming assignment Help here at Computer Science Assignment PortalI’ve had the opportunity to work on a number of incredible projects that I’m pleased to share. Not only do I enjoy showcasing my work, but also sharing details about the creative process behind each project. Feel free to browse through my portfolio, and get in touch if you have a project in mind that you’d like to explore together.Codersarts: the best online site for programming assignmentsInterested in learning more about my work or how we can collaborate on an upcoming project? Reach out today.Get Any Type of Python Programming Assignment, Project Done#Python programming Help(Fundamentals)#Python GUI Assignment Help: #Assignment Help GUI in python using Tkinter,PyQt or kivy#Data Analysis Assignment Help in Python#Machine Learning Assignment Help#Data Visualization Assignment Help with Python#Natural language Processing(NLP) Assignment Help#Web Development Assignment Help in Python#Python Web Scrapping Assignment Help#Game Development in python#Python Programming Tutorial: visit to our youtube channel- Coders Arts#Python programming helpDo My Java Assignment,Java Homework HelpBest in the Biz.“ We are committed to providing service of the highest quality, paying particular attention to work efficiently in Java Homework and Java Assignment keeping the lines of communication with our clients clear and concise ”Do MY C Programming Assignment Help,Do MY C Programming Homework HelpDo MY database Assignment Help,Do my Database Homework HelpHope this information will help youThank you and hope to see you at my website: Computer Science Assignment Portal

Do ranks on competitive coding websites help you in getting an internship or a job?

Well ranks definitely matter in getting a job or internship but they matter because you have worked hard to get that rank . In order to get that rank you had solved questions that had elevated you among the best and in order has improved your programming skills. So ranks matter in the sense that it will provide you the confidence to face the technical interview and nail it with ease and not something like that you have got the job because you have this or this rank in that programming website.Now coming to your scenario let us take it a bit further.You currently have a rank of 7000 and you are zealous to get a rank of under 500 .Now in order to get that rank you will code and code and learn and learn .You will code faster than others.You will code better than others.This will make the difference .So do increase your ranks but  to learn not to earn(at least to get the job solely due to this reason).Also refer to the following link to hear from someone more credible. Lalit Kandu -One of the best competitive programmers in the countryWill Directi hire an engineer if he has 55 percent, considering the fact that he is a very good programmer and has solved 400 problems on SPOJ?P.S: It is always good to mention your some of such achievement in the middle of interview because it will definitely show your ability to program and hard work but please do not stretch it , it could be disastrous.Best of luck ..

TRENDING NEWS