Write a program that calculates the amount of money a person would earn over a period of time if the person's salary is $1 the first day, $2 the second day, and continues to double each day. The program should prompt the user to enter the number of days. Display a table showing what the salary was for each day, then show the total pay at the end of the period.
Q: Write a program that reads how much a customer spends on groceries and computes the discount coupon…
A: As no Programming language is mentioned, using Java.
Q: Write a python program that takes a sale amount as an input and print the discount given based on…
A: The variable sales_amount takes the input from the user Then the function is used to calculate the…
Q: Use C language: Write a program which asks the user to input a whole number representing the total…
A: The C code is given below with code and output screenshot All the best ?
Q: Write a program that prompts the user to enter three cities and displays them in ascending order.
A: #include<iostream>#include<string.h>using namespace std;int main(){char nameAll[5][20],…
Q: Write a program that asks the user to enter today’s sales for five stores. The program should…
A: Write a program that asks the user to enter today’s sales for five stores. The program should…
Q: On planet Groening, there are 8 months of the year as shown in the table. If the user chooses #1 in…
A: #include <iostream> using namespace std; int main() { intnumOfDays; /*used to store…
Q: (Print a table) Write a program that displays the following table: y 1.2 pow(x, у) 3.00281 2.5 5.0…
A: #include <stdio.h>#include <math.h> int main (){printf("X Y pow(X ,Y)\n");printf("2.5…
Q: Write a program called CashRegister.cpp. The program should prompt the user for each item they are…
A: Create two seperate vector one store item price and second one atore item list. Don't write full…
Q: Write a program to calculate electricity bill charged to a consumer. Ask him to enter the units…
A: Please find the answer below :
Q: Write a program that displays the following two tables side by side (note that 1 kilogram is 2.2…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED JAVA FOR THE SOLUTION. Define…
Q: Write a program named RepeatedDigits.java that asks the user to enter a number to be tested for…
A: I have added the comments in the code. I have also added the output screen-shot for better…
Q: Write a program that reads from the user the cinema ticket price and the number of history cinema…
A: Hi, Since Programming language is not mentioned I have used Python.
Q: USING PYTHON, Write a program that calculates the amount of money a person would earn over a period…
A: The given problem is to be solved using Python programming which will calculate the salary of a…
Q: Write a program that reads two excel sheets. One of these sheets contains a list of items names. The…
A: CODE: # Import library to read excel fileimport openpyxl # Reading the sheets in the…
Q: In this exercise you will create a program that displays a multiplication table that shows the…
A: Java code: public class Main{ public static void main(String []args) { int arr [][] =…
Q: AGU Computer Engineering Department created a new mathematical game that can be played with two…
A: Using JAVA To generate random numbers in JAVA we use Math.random() function to generate numbers…
Q: write a program that calculates the total salary of an employee if he or she earns one penny the…
A: Actually, program is a executable software that runs on a computer.
Q: In this assignment you will write a program that shows the valid moves of chess pieces. Your program…
A: C++ Code : bool isValid(int c[][MAX], int n){ int a[] = { 0, -1, 0, 1 }; int b[] = { 1, 0, -1, 0…
Q: Write a program that prompts the user for the current US population, and the names and population of…
A:
Q: Write a python program that takes a sale amount as an input and print the discount percentage given…
A: algorithm:- take input from user. apply if elif else to check the range display the discount…
Q: Construct a program which asks user to enter an integer number and output the table of that number…
A: As you've not specified the language, here's the program in C++ and the algorithm (which can be used…
Q: Write a program to select your favorite food among 5 foods. 1. Pizza 2. Burger 3. Sandwich 4.…
A: Note: Below is the required program in the C++ language. Program Approach: Including a necessary…
Q: Write a program that reads from the user the cinema ticket price and the number of history cinema…
A: Steps: Take price and history reservation as input. Based on history reservation, compute discount…
Q: In Python Propose a menu-driven program that calculates the total price for a picnic lunch that…
A: Flowchart is the pictorial representation of sequence of steps in solving a task.
Q: Write a program that prompts the user for a number of decimal places between 1 and 10 and returns…
A: #include<iostream> using namespace std; int main(){ int count=0;…
Q: Suppose the weekly hours for all employees are stored in a table. Each row records an employee’s…
A: Explanation: Work-hours of every worker at intervals every week is keep in empWorkHours[][] on day…
Q: Use C language: Write a program which asks the user to input a whole number representing the total…
A: Algorithm: Start of the program Declare necessary variable Read the price variable Based on price…
Q: In various applications, you are often asked to compute the mean and standard deviation of data. The…
A: Since no programming language is mentioned, I am using java Code: import java.util.*;public class…
Q: Question Write a python program that takes a sale amount as an input and print the discount…
A: Here I have first of all asked the user for the sale amount and stored it into a variable. Then I…
Q: Write a program that displays a temperature conversion table for degrees Celsius and degrees…
A: The given is the problem to print the converted value of celsius degree to farenheit degree. The…
Q: Write a program that calculates the amount of money a person would earn over a period of time I f…
A: According to the information given:- We have to follow the instruction in order to get the desired…
Q: Write a short program that displays a list of coffees, like below: The Kicking Coffee Café $3.50 L-…
A: C program used to answer this question is given in the following steps.
Q: Write a python program that calculates the amount of money a person would earn over a period of time…
A: Let's understand step by step : 1. The user will enter the number of days of earning which will be…
Q: Q1/ Write a program that reads from the user the number of students in the class and their grades i…
A: Code:Specific language is not mentioned so i am giving the code in c++ langauge: #include…
Q: Here is the assignment Write a program that prints the multiplication table but inserts a randomly…
A: Program: #include <stdlib.h> #include <iostream>#include <iomanip>using namespace…
Q: Write a program that reads from the user the cinema ticket price and the number of history cinema…
A: Step 1 : Start Step 2 : In the main method , Take user inputs for the Ticket price and number of…
Q: A rod is used to hang a load (force) of 1000 N. There are 4 ingredients with their respective…
A: Task : The task is to create two lists to store details for the : ingredient names strengths
Q: GU Computer Engineering Department created a new mathematical game that can be played with two…
A: Given: We have given a problem where two people green and red play a game. There is a list of n…
Q: Write a program that displays the following table (note that 1 mile is 1.609 kilometers):Miles…
A: Given: Program that displays the following table (note that 1 mile is 1.609 kilometers)
Q: Write a program that will determine the salary of an employee based on his or her rank as follows:…
A: Let's understand step by step : Since programming language is not given so using C++. Now steps…
Q: Write a program that calculates the total grade for N classroom exercises as a percentage. The user…
A: Program: //include the header file #include<iostream> #include<iomanip> using namespace…
Q: Write a program that displays the following table (notethat farenheit = celsius * 9/5 + 32):Celsius…
A: Note: Since it is not mentioned which programing language to be used so i prefered to use java…
Q: Write a program that calculates the amount of money a person would earn over a period of time if his…
A: Here,write a program that calculates the amount of money a person would earn over a period of time…
Q: our relative, who goes to primary school and has just learned the multiplication table, asks you to…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it…
Q: Write a javascript program that calculates how much a person would earn over a period of time. if…
A: Please check step 2 & 3 for program and output
Q: In various applications, you are often asked to compute the mean and standard deviation of data. The…
A: Mean The mean of the data is sum of the values of all data and then dividing it with total number of…
Q: Write a console program, that will calculate the pocket money saved over a period, with one cent at…
A: We need to write a console program for mentioned functionality. The language used is JAVA.
Q: Question 1 Write a python program that takes a sale amount as an input and print the discount…
A: Algorithm: Start Read sale amount if(n>=0 and n<=100) Set discountPercentage=2 else…
Q: Write a program that prompts the user to enter the name, the number of children, and the basic…
A: Please give positive ratings for my effort. Thanks. PROGRAM #include<bits/stdc++.h>using…
Write a program that calculates the amount of money a person would earn over a period
of time if the person's salary is $1 the first day, $2 the second day, and continues to double
each day. The program should prompt the user to enter the number of days.
Display a table showing what the salary was for each day, then show the total pay at the
end of the period.
Your result should look like this:
Enter the number of days: 4
Day
1
$1
$2
$4
4 $8
2
3
Dollars
The total salary for 4 days is: $ 15.using java
Trending now
This is a popular solution!
Step by step
Solved in 4 steps with 2 images
- Write a console program, that will calculate the pocket money saved over a period, with one cent at the start of account setup, will double every day. For example, if the opening balance is one cent the first day, it will be two cents the second day, and continues to double each day. The console program you will write, should ask the user for the number of days, and display a table showing what the saving was for each day, and then show the total savings at the end of the period. The output should be displayed in a dollar amount, not the number of cents.Write a program that calculates the amount of money 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 ask the user for the number of days. Display a table showing what the salary was for each day, then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies.Write a program that calculates how much a person earns in a month if the salary is one penny the first day, two pennies the second day, four pennies the third day, and so on with the daily pay doubling each day the employee works. The program should ask the user for the number of days the employee worked during the month, validate that it is between 1 and 31, and then display a table showing how much the salary was for each day worked, as well as the total pay earned for the month. The output should be displayed in dollars with two decimal points, not in pennies.
- Write a program that calculates the amount of money a person would earn over a period of time I f his or her salary is one penny the first day, two pennies the second day, and continues to double each day. The program should ask the user for the number of days. Display a table showing what the salary was for each day, then show the total pay at the end of the period. The output should be displayed in a dollar amount, not the number of pennies.Python Programming Only Please Write a program that calculates the amount of money a person would earn over a periodof time if his or her salary is one penny the first day, two pennies the second day, andcontinues to double each day. The program should ask the user for the number of days.Display a table showing what the salary was for each day, then show the total pay at theend of the period. The output should be displayed in a dollar amount, not the number ofpennies.Problem: A small company needs an interactive program to compute an employee’s paycheck. The payroll clerk will initially input the data, and given the input data, an employee's wage for the week should be displayed on the screen for the payroll check. The data for the employee includes the employee's hourly pay rate and the number of hours worked that week. Wage is equal to the employee's pay rate times the number of hours worked (up to 40 hours). If the employee worked more than 40 hours, wage is equal to the employee's pay rate times 40 hours plus 1½ times the employee's pay rate times the number of hours worked above 40. Instructions: Match the action at the left-side with the correct step number at the right-side (the attached picture). Note that it may be possible to group more than one related actions in the same logical step / process without altering the essence of the algorithm. In the program flow, input and checking of hourly pay rate should come before that of the number…
- Write a program that lets a user calculate their body mass index . BMI is calculated using height (feet and inches) and weight (pounds). The formula for BMI is BMI= (weight in pounds * 703) / (height in inches)2 The result of the formula then is plugged into a table to determine a persons status: program will prompt the user for their height and weight, then output their BMI (to 1 decimal place) and category. Please write a code in Java that results like test case examples . ThanksWrite a program that prompts the user to enter a Bill line (Product name, quantity, unit price, and discount value). The program will then: Calculate the total of row: Total = quantity + unit price • Calculate the total after discount: total after discount = total – discount Apply a VAT tax of 12% and find the net: net = total after discount * (1 + tax) The program will then display all the information needed as shown in the sample run below Sample Run: Enter the name of the product: Keyboard Enter the quantity: 4 Enter the price of the Keyboard (in $): 10 Enter the discount rate %: 5 The total after discount is: 38 The net of 4 ( Keyboard ) is: $42.18XYZ Company, LLC uses a program to manage the information of their employees. The program gets the name of the employee, number of hours worked and rate per hour. It computes the salary by multiplying the number of hours worked with rate per hour. If the salary is more than 1000, tax is computed as 5% of the salary, otherwise, tax is computed as 2% of the salary. The program will display the name of the employee, salary and tax.
- Write a program that calculates the total point earned by a football team over a series of games and calculate the average of team. It allows the user to enter the series of game points, then -1 to signal the end of the list.In C++ please, using basic programming one coding The main menu should show the available options: Show the roster: Displays all the player names and jersey numbers in a numbered list. Ex: 1. Susan Martinez (33), 2. Jake Smith (21), etc. Add a player: Prompts the user to type the player's full name and jersey number. Then adds the player to the roster. Remove a player: Displays the roster and prompts the user to enter the number of the player to remove. Then removes the player from the roster. Quit: Quits the program. The program should display the main menu after the user shows the roster, adds a player, or removes a player. The program only terminates when the user chooses the quit option. Data validation should be used where appropriate. Ex: The user should not be able to choose an option that doesn't exist or delete a player that doesn't exist. The roster should be kept in alphabetic order by the players' full names. Ex: If Alice Chang (9) is added to a roster with Jake Smith and…The Café Noir Coffee Shop wants some market research on its customers. When a customer places an order, a clerk asks for the customer’s zip code and age. The clerk enters that data as well as the number of items the customer orders. The program operates continuously until the clerk enters a 0 for zip code at the end of the day. When the clerk enters an invalid zip code (more than 5 digits) or an invalid age (defined as less than 10 or more than 110), the program reprompts the clerk continuously. When the clerk enters fewer than 1 or more than 12 items, the program reprompts the clerk two more times. If the clerk enters a high value on the third attempt, the program accepts the high value, but if the clerk enters a negative value onthe third attempt, an error message is displayed and the order is not counted. At the end of the program, display a count of the number of items ordered by customers from the same zip code as the coffee shop (54984), and a count from other zip codes. Also…