Computer Programming

I must write a program using Java that calculates the amount a person would earn over a period of time if his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should display a table showing the salary for each day, and then show the total pay at the end of the period. The output should be displayed in dollar amount.

  1. 👍
  2. 👎
  3. 👁
  1. I don't know how to do computer programming, but his/her salary for the 20th day would be $5,242.88.

    1. 👍
    2. 👎
    👤
    Ms. Sue
  2. bbb

    1. 👍
    2. 👎

Respond to this Question

First Name

Your Response

Similar Questions

  1. Pseudocode

    Write pseudocode for a program that calculates a customer’s total price after tax. The program will ask the user for the price of the item they are buying. Then the program will add a 5% tax to the item and output the final

  2. Elements of programming

    Write a QBASIC program that calculates the area of a circle, a rectangle and a triangle. The program should allow the user to select the shape (C or c for circle, R or r for Rectangle, T or t for Triangle) whose area he or she

  3. C++

    // Program: name of program // Author: your name // Date Written: date you began writing the program /* Abstract: Brief description of the program */ Include in-line comments in the body of your program. You can convert

  4. c programming

    a student designed a program to accept the age of an employee and then compute the employees retirement year and display the same in a statement on the screen required. a) write out the pseudo-code for the program above b) write

  1. Programming

    Write pseudocode to represent the logic of a program that allows the user to enter a value for hours worked in a day. The program calculates the hours worked in a five day week and the hours worked in a 252 day work year. The

  2. math

    four people invested in a restaurant. one person invested $1000,000. two others invested in the ratio x:2x, and the fourth person invested an amount equal to the other three investors combined. the total investment was $1,100,000.

  3. C++

    Write a program which finds the age and name of the oldest person in a group. const int SIZE = 8; int age[SIZE] = { 21, 42, 26, 22, 35, 13, 18, 39 }; string name[SIZE] = {“Mark”, “Rebecca”, “Fred”, “Alfred”,

  4. java programming

    write a java program using arrays function for hotel bill calculation?

  1. java

    Write a java application that finds the smallest of several integers. Prompt the user for the number of integers that will be input, then prompt the user for that number of integers. Evaluate the integers to determine the smallest

  2. Java

    write a java program to read a record name, age, and salary. Calculate the tax amount on the salary field display the new record.

  3. Programming and Design

    Draw the hierarchy chart and design the logic for a program that calculates the projected cost of an automobile trip. Assume that the user's car travels 20 miles per gallon of gas. Design a program that prompts the user for a

  4. Java Programming

    I'm a beginner to Java and I need to know how to do the following: Write a program that will ask the user to enter the amount of a purchase. The program should then compute the state and county sales tax. Assume the state sales

You can view more similar questions or ask a new question.