Write a program to calculate the total employee salary (basic salary + overtime + house rent) based on the overtime. Overtime is paid at the rate of OMR 15.300 per hour for every hour worked above 30 hours. Get the mumber of hours worked by the employee, the basic salary and house rent through command line
Q: Write a program in java to accept basicpay,hra, from the employee. Calculate grosspay which is…
A: Given:
Q: Write a program that coverts a zip code to a bar code. The bar codes use large and small bars. We…
A: Since no programming language is mentioned we will use Java to implement solution to this problem.…
Q: Create a program in python wages.py that assumes people are paid double time for hours over 60. They…
A: The required Python code is: import randomimport winsound hourRate=float(input("Enter the hourly…
Q: Write a program called celsius_to_fahrenheit which prompts the user for a Celsius temperature,…
A: Algorithm / Steps: User input for celsius temperature Converting celsius temp to Fahrenheit temp…
Q: Write a program in Java language to manage a hotel with 25 rooms, 10 rooms are executive, with…
A: Please find the code in java below
Q: Write a C Program that allows a user to enter any number of student test scores until the user…
A: Program: TestScoreStatistics.h #ifndef TestScoreStatistics_H #define TestScoreStatistics_H…
Q: Write a program that calculates and prints the bill for a cellular telephone company, on the type of…
A: Actually, program is a executable software that runs on a computer.
Q: Using java language, write a program with total change amount in pennies as an integer input, and…
A: Actually, java is a object oriented programming language. It is a platform independent.
Q: Write a program that asks the user for a word, then prints out the word once on the first line,…
A: Algorithm: Input word from user Append a space to the input word Iterate a for loop for variable i…
Q: Write a program named Twitter that accepts a user's message and determines whether it is short…
A: using System;public class Twitter { static void Main() { //program starts…
Q: Write a program that computes and assesse the tuition fee of the students in one semester, based on…
A: Algorithm: 1. Start. 2. Read the tuition fee as tuition_fee. 3. Read payment mode (Press (1) - Cash,…
Q: Write a python program that asks the user to enter exam scores, the number is based on what the user…
A: def input_function(n, scores): print("Enter the score(s):") for i in range(n):…
Q: Write a program that lets the user enter the coordinates of the center and radius of two circles,…
A: Answer: C++ Source Code: #include <iostream>#include <cmath> using namespace std; int…
Q: Write a program for Horizon Phones, a provider of cellular phone service.Prompt a user for maximum…
A: code :-- //for Scanner classimport java.util.*; public class Main{ public static void main(String[]…
Q: Write a program with java that finds the total fuel cost of the vehicle according to the amount of…
A: java program in which user has to input amount of fuel spent per km : price per liter of fuel :…
Q: Write a program that will convert U.S. dollar amounts to Japanese yen and to euros, storing the…
A: Program description: n is the user input integer variable that takes from the user how many dollars…
Q: Write a program that resembles a phone book, which stores and displays the names, the addresses…
A: Step 1: Declare a structure PhoneBook that stores the name, address and phone number. Step 2: Define…
Q: In this lab, you complete a partially written Python program for an airline that offers a 25%…
A: # Passengers who are 6 years old or younger # (passengerAge <= 6) # Passengers who are 65 years…
Q: Write a program to read two integers with the following significance. The first integer value…
A: Required: Write a program to read two integers with the following significance. The first integer…
Q: umber of seconds, displays a message at every
A: Since the programming language is not mentioned, I have done the code using Java.
Q: Write a program to convert a measurement given in feet to the equivalent number of (a) yards, (b)…
A: Program requirements: The c++ program prompts the user to enter the value for feet and then…
Q: Write a program that prompts the user for a U.S. dollar amount and then converts it to Japanese Yen,…
A: Please find the answer below :
Q: Write a program that calculates and prints the bill for a cellular telephone company. The company…
A: code snippet:
Q: Write a program to calculate the total employee salary (basic salary overtime house rent) based on…
A: Task :- Write a program to calculate the total salary for an employee. (Note :- As programming…
Q: Write a complete interactive CSharp program that prompts the user for the volume and height of the…
A: Using Cylinder Volume formula we can find the radius and twice of this radius is diameter Using…
Q: Write a program that prompts the user to enter a time in seconds over 500 and then displays that…
A: you did not mention any programming language so i am solving this in java 1 first we have to take…
Q: Solve in Python: Write a program that creates a login name for a user, given the user's first name,…
A: Here I have taken input from the user and stored it into 3 different variables. Next, I have…
Q: Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D,…
A: Write a program that translates a letter grade into a number grade. Letter grades are A, B, C, D,…
Q: Write a FORTRAN90 program that reads a student ID and his GP he program should print a message…
A: 1- In this assignment require, two input studentID, GPA, and display output according to them using…
Q: Write a program that simulates the normal operation of a modern elevator with 25 floors (levels) and…
A: Answer:)
Q: Write a program dist. that calculates the distance between two points and prints the result on the…
A: Write a program dist. that calculates the distance between two points and prints the result on the…
Q: Write a program that calculates and prints the bill for a cellular telephone company. The company…
A: C++ Code: #include <iostream>#include <iomanip> using namespace std;int main(){ int…
Q: Write a program that coverts a zip code to a bar code. The bar codes use large and small bars. We…
A: Solution:#Define the functiondef checksum(zip): #Declare the empty variable sum = 0 #Loop…
Q: Write a program that begins by reading a temperature from the user in degrees Celsius. Then your…
A: Given: To Write a program that begins by reading a temperature from the user in degrees Celsius.…
Q: Write a program to calculate the total employee salary (basic salary + overtime + house rent) based…
A: Task :- Write a program to calculate the employee salary . Note :- As programming language is not…
Q: Write a program that allows you to play rock,paper, scissors against the computer. When first run…
A: #include <iostream>#include <stdio.h>#include <stdlib.h>#include <ctime>…
Q: Write a java program to help the student to arrange his Diploma Marks of 12 subjects from high to…
A: Ascending order: Sorting the elements of the array from low values to high values is called…
Q: Write a program that creates a login name for a user, given the user's first name, last name, and a…
A:
Q: Write a program called final1.py that calculates the average quiz grade after dropping the lowest…
A: Python code: import sys n = len(sys.argv) #finding the length of list passed through command line…
Q: Q4: Write a FORTRAN90 program that reads a student ID and his GPA out of 4.0. The program should…
A: Algorithm: Start Read student ID and GPA If gpa>=3.5 then print "EXCELLENT" Else if gpa<3.5…
Q: Write a program that computes the cost of postage on a first-class letter according to the following…
A: Use an if-else block to find the cost of postage and then another if-else block to check for special…
Q: Write a program that calculates the cost per square inch of a circular pizza,given its diameter and…
A: We need to find the per square inch of any circular pizza where diameter and price of pizza will be…
Q: Write a Java program that prompts the user to enter a monthly saving amount and displays the account…
A: Approach Use for loop iterating from 1 to 12 for computing account value after each month. The…
Q: Write a program that simulates the normal operation of a modern elevator with 25 floors (levels) and…
A: Algorithm: Start the program. Read the current floor from user. Read the option from user to move…
Q: Write a program that enters the time of a phone call in seconds. If the duration of the call is a…
A: Solution: Include necessary header files In the main method declare the variable time and balance…
Q: Write a JAVA program that reads the user's first name and last name, and then use them to create a…
A: Use an if-else bock to check for the sum of lengths and print respective mail id
Q: Write a program that converts a time from 24-hour notation to 12-hour notation. The following is a…
A: Let us consider a Java program that converts a time from 24-hour notation to 12-hour notation and…
Step by step
Solved in 2 steps with 1 images
- Write a program that prompts the capacity, in gallons, of an automobile fuel tank and the miles per gallon theautomobile can be driven without refueling.Implement a program that calculates the bill of a sandwich stand. The program should ask theuser to enter the quantity of each of the items. Then compute 13% GST on the total amountand generate a bill with items, their quantity along with price of each item and the total(inclusive GST). The stand has the following items:- Petti for $2.50- Drink for $1.25- Extra cheese topping for $1.25Write a program that simulates the normal operation of a modern elevator with 25 floors (levels) and that has two buttons: UP and DOWN, except on the lower floor (level), that there is only a call button to UP and the last floor (level) that only exists DOWN button
- This is for Coral. Sites like Zillow get input about house prices from a database and provide nice summaries for readers. Write a program with two inputs, current price and last month's price (both integers). Then, output a summary listing the price, the change since last month, and the estimated monthly mortgage computed as (currentPrice * 0.045) / 12. Output the estimated monthly mortgage (estMortgage) with two digits after the decimal point, which can be achieved as follows:Put estMortgage to output with 2 decimal places Ex: If the input is: 200000 210000 the output is: This house is $200000. The change is $-10000 since last month. The estimated monthly mortgage is $750.00. Note: Getting the precise spacing, punctuation, and newlines exactly right is a key point of this assignment. Such precision is an important part of programming. The code I have written is: integer currentPriceinteger lastMonthsPriceinteger changeSinceLastMonthinteger estMortgage currentPrice = Get next…Write a program that begins by reading a temperature from the user in degrees Celsius. Then your program should display the equivalent temperature in degrees Fahrenheit and degrees Kelvin. The calculations needed to convert between different units of temperature can be found on the internet.Write a program that converts a time from 24-hour notation to 12-hour notation. The following is a sample interactionbetween the user and the program. Enter time in 24-hour notation:13:07That is the same as 1.07 PMAgain? (y/n)y Enter time in 24-hour notation:10:15That is the same as 10:15 AMAgain? (y/n)y Enter time in 24-hour notation:10:65There is no such time as 10:65Try again:Enter time in 24-hour notation:16:05That is the same as 4.05 PMAgain? (y/n)nEnd of program Define an exception class called TimeFormartException. If the user enters an illegal time, like 10:65or even gibberish like &&*68, your program should throw and handle a TimeFormatException.
- Write a program that simulates a snail trying to crawl up a building of height 6steps. The snail starts on the ground, at height 0. In each iteration, the snaileither crawls up one step, or slips off one step and falls all the way back to theground. In each iteration you would take a number as input from user and if the number is less 50 than the snail will slip otherwise it will crawl up. The program should keep going until the snail gets to the top of the building. It should then print out the number of falls that the snail took before it finally reached the top.Here is a sample execution:Iteration 1: Please enter a number between [1,100]: 60 Snail Moved: UpIteration 2: Please enter a number between [1,100]: 60 Snail Moved: UpIteration 2: Please enter a number between [1,100]: 40 Snail Moved: DownNumber of falls: 8Write a java program to help the student to arrange his Diploma Marks of 12 subjects from high to low and Advanced diploma marks of 12 subjects low to high and also find the lowest mark in the advanced diploma.Write a program that can suggest an activity based on the temperature. If the temperature is between 20 to 40 degrees Fahrenheit, suggest the user go skiing; if the temperature is between 41 to 60 degrees Fahrenheit, suggest the user go hiking; if the temperature is in the range of 61 to 80, suggest swimming. For all the temperatures out of these ranges (too cold or too hot), then suggest staying inside.
- Write a program that computes the rent in five years and the total rent for one year starting five years from nowWrite a program IN JAVA for an instructor whose course has the following policies: Two quizzes, each graded on the basis of 10 points, are given. One midterm exam and one final exam, each graded on the basis of 100 points, are given. The final exam counts for 50 percent of the grade, the midterm counts for 25 percent, and the two quizzes together count for a total of 25 percent. (Do not forget to normalize the quiz scores. They should be converted to percentages before they are averaged in.) Any grade of 90 percent or more is an A, any grade between 80 and 89 percent is a B, any grade between 70 and 79 percent is a C, any grade between 60 and 69 percent is a D, and grade below 60 percent is an F. The program should read in the student’s scores and display the student’s record, which consists of two quizzes scores, two exams scores, the student’s total score for the entire course, and the final letter grade. The total score is a number in the range to 100, which represents the…Write a program that will Input the name , position of the employee , Input the rate per hour, hours worked. Compute the Gross pay for an employee.