Mr. Allan is a salesman and travels around UAE to check the different stores from Sunday to Thursday. Write a program that will store the total distance in meters he traveled for the day. Your program will display the days where he traveled more than 3000 meters, the total number of meters traveled, the average distance traveled and the equivalent number of distance in kilometers and meters.
Q: Write a program that will check the employees years in service and office. • The user will input…
A: For writing the above code, we have used c++ language. Coding in the c++ is easy and efficient. It…
Q: Write a program that will calculate and print out bills for the city water company. The water rates…
A: The answer to the following question:-
Q: Write a program that reads two pieces of information: the hourly wages and the number of hours…
A: Required: Write a python program to calculate the net salary based on given instructions. all the…
Q: Write a program to convert centigrade to Kelvin. It should display value in centigrade and then the…
A: Python program to solve the given problem is below.
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: NOTE: SINCE THE LANGUAGE OF THE PROGRAM IS NOT GIVEN, I HAVE USED PYTHON FOR THE SOLUTION Define…
Q: Write a program that displays all the leap years, ten per line,from 2014 to 2114, separated by…
A: Since the Programming language is not mentioned in the question, we will answer this question in…
Q: Write a program that reads from a student his/her name and his/her ID which is formed of 8 digits.…
A: The solution to the given problem is below. **Note: As programing language is not mentioned in the…
Q: Write a program that prompts the user to enter the number of students and each student’s name and…
A: Since the coding language is not given, I have done the code in Python. Algorithm : Step 1 : ask for…
Q: Write a program that reads in an investment amount, the annual interest rate, and the number of…
A: PROGRAM CODE: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program that calculates the cost of travelling using a private jet. The program must request…
A: for input from user: Console.WriteLine("Enter name of the destination and the distance(in km) of the…
Q: Write a program to calculate the estimated engine horsepower of a car based on the weight of the car…
A: As no programming language is mentioned, it is solved using basic C++
Q: Write a program that prompts the user to enter the year and the first three letters of a month name…
A: CODE TO COPY:- month_lst = ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug',…
Q: Write a program that calculates how much a person earns in a month if the salary is one penny the…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C++ FOR THE SOLUTION. Define…
Q: Write a program that asks for the principal, the annual interest rate, and the number of times the…
A: Hello student. Greetings Hope you are doing great. As you have not mentioned any particular…
Q: In this exercise you will create a program that reads a letter of the alphabet from the user. If the…
A: In this program Get the input alphabetical letter from the user Using if statement check the entered…
Q: Write a program that computes the employee's payroll of ABC Company. The user is first asked to…
A: Formula to calculate the gross income of an employee Gross Income =Hourly Rate * Number of Hours…
Q: write a program to convert between KPHand MPH in either direction.If you are driving across the…
A: Hey..We have following important points to solve this problem using java programming:We are using…
Q: Write a program for the Animal Express delivery company. The company charges by the kilogram for…
A: Python used to answer this question
Q: Write a program that prompts the user to enterthe month and year and displays the number of days in…
A: Program: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a program that reads from the user the initial KiloMeters of the car, the current KiloMeters,…
A: Note: as programming language is not mentioned c++ is used. The program with output is given below
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Since programming language is not mentioned in the question, we will answer this question in the C++…
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: I always find myself asking at the end of the month, “Where did all that money go?" I'm sure this…
A: Purpose of the program: This program prompts the user to enter the number of categories for which…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: ********************************************* // iostream in C++ is the standard library which…
Q: Write a program that will calculate and print out bills for the city water company. The water rates…
A: Program code: #include <iostream>#include <cmath>using namespace std;int main(){int…
Q: second. 2. Write a program that converts feet to meters. The program should display feet from 3 to…
A: PROGRAM CODE: #include <stdio.h> int main(void){ int start = 3, end = 30;…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Since you are not specifying any language for implementation, I am using C++. Program #include…
Q: Write a program to read basic salary (bsalary) and sales (sales) then calculate and print the net…
A: C++ program for above : #include <bits/stdc++.h> using namespace std; int main() {…
Q: Your program will calculate the cost of orders on Amazon.com witha quantity and price, and add…
A: Program in Java: import java.io.*;public class Ordering_System{ public static void main(String…
Q: Write a program that prompts the user to input two POSITIVE numbers — a dividend (numerator) and a…
A: #include <stdio.h>//The code execution begins from the start of the main() function.int main()…
Q: Write a program for the Animal Express delivery company. The company charges by the kilogram for…
A: The python code is shown in the following steps.
Q: Write a program that promotes the user to enter the number of students and each student's name and…
A: The java program and the approach that prompts the user to enter the names and the scores of the…
Q: You can find out how many seconds have elapsed since Jan 1, 1970 using the time() function. #include…
A: Algorithm Steps:- 1. Find the number of seconds since Jan 1, 1970, using the time(NULL) function…
Q: Suppose you are a surveyor. Your job requires you to study some maps that give distances in…
A: Program Plan: Create function kiloToMiles1() to convert kilometer in miles by using pass by value.…
Q: Write a program that will calculate and print out bills for the city water company. The water rates…
A: using System;class HelloWorld { static void Main() { double gallons,bill=0; char code;…
Q: Write a program that computes the body mass index (BMI) of an individual. Your program should begin…
A: Note : Here I have asked for the height in inches and weight in pounds from user. Algorithm : Step…
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: code: //include the necessary headers#include <iostream> #include <string>using…
Q: Write in Python program... for an invoice calculation program, write the python program that…
A: code:
Q: Write a program that reads the subtotal and the gratuity rate and computes the gratuity and total.…
A: GIVEN: Write a program that reads the subtotal and the gratuity rate and computes the gratuity and…
Q: Write a program that asks the user to enter an amount of money in the format of dollars and…
A: #include <iostream>using namespace std; int main(){ int dollars, cents;…
Q: Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase…
A: Suppose you are a cashier at a grocery store and you want to write a program that takes a purchase…
Q: You are working for a lumber company, and your employer would like a program that calculates the…
A: Program Approach: Declare necessary variables in main function. Define float bf method which…
Q: Write a program to convert between KPH and MPH in either direction.If you are driving across the…
A:
Q: Write a program that takes your full name as input and displays the abbreviations of the first and…
A: Note: Programming Language not specified using C++ to implement code: //include the necessary…
Q: Write a program that asks the user his/her name(first letter), semester, mlarks, and age and then…
A: Code : import java.util.*;class input{ public static void main(String[] args){ Scanner input = new…
Q: Write a program for the Animal Express delivery company. The company charges by the kilogram for…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it in…
Q: Write a program that prompts the user to input the three coefficients a, b, and c of a quadratic…
A: Sample Response: #Python program to find the roots of quadratic equationimport math# function to…
Q: The Research team led by Bernadette Wolowitz at Cal-tech University has discovered a new Amoeba that…
A: Explanation: Include all the necessary header files. Declare the necessary variables. Take the user…
In Java can you explain to me how to do this question
Step by step
Solved in 2 steps with 2 images
- A hotel has a certain number of rooms. Each room can be either single bed or double bed type and may be AC or non-AC type. The rooms have different rates depending on whether they are of single or double, AC or Non-AC types. The room tariff however may vary during different parts of the year depending up on the occupancy rate. For this, the computer should be able to display the average occupancy rate for a given month, so that the manager can revise the room tariff for the next month either upwards or downwards by a certain percentage. Perform structured analysis and structured design for this Hotel Automation Software—software that would automate the book keeping activities of a 5-star hotel.Guests can reserve rooms in advance or can reserve rooms on the spot depending upon availability of rooms. The receptionist would enter data pertaining to guests such as their arrival time, advance paid, approximate duration of stay, and the type of the room required. Depending on this data and…In various applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average of the numbers. The standard deviation is a statistic that tells you how tightly all the various data are clustered around the mean in a set of data. For example, what is the average age of the students in a class? How close are the ages? If all the students are the same age, the deviation is 0. Write a program that prompts the user to enter any number of values into a double array, and then calculates and displays the mean and standard deviations of these numbers using the following formulas: mean)? 2i +x2 + .. + xn i=1 i=1 mean = deviation = п - 1In various applications, you are often asked to compute the mean and standard deviation of data. The mean is simply the average of the numbers. The standard deviation is a statistic that tells you how tightly all the various data are clustered around the mean in a set of data. For example, what is the average age of the students in a class? How close are the ages? If all the students are the same age, the deviation is 0. Write a program that prompts the user to enter any number of values into a double array, and then calculates and displays the mean and standard deviations of these numbers using the following formulas: (z - mean) z+z3+ *** +zn deviation = mean = n-1 Required Methods You must write your program so that the following methods are defined/implemented and used (called): • /* Compute the deviation of double values */ public static double deviation (double[] x) • /* Compute the mean of an array of double values */ public static double mean (double[] x) Sample Run (user input…
- You are tasked with writing a program to process students’ end of semester marks. For each student you must enter into your program the student’s id number (an integer), followed by their mark (an integer out of 100) in 4 courses. A student number of 0 indicates the end of the data. A student moves on to the next semester if the average of their 4 courses is at least 60 (greater than or equal to 60). Write a program to read the data and print, for each student: The student number, the marks obtained in each course, final mark of the student (average of all the marks), their final grade (A,B,C,D or F) and whether or not they move on to the next semester. In addition, after all data entry is completed, print The number of students who move on to the next semester and the number who do not. The student with the highest final mark (ignore the possibility of a tie). Grades are calculated as follows: A = 70 and over, B = 60 (inclusive) -70, C = 50(inclusive)-60 D =…You are tasked with writing a program to process students’ end of semester marks. For each student you must enter into your program the student’s id number (an integer), followed by their mark (an integer out of 100) in 4 courses. A student number of 0 indicates the end of the data. A student moves on to the next semester if the average of their 4 courses is at least 60 (greater than or equal to 60). Write a program to read the data and print, for each student: The student number, the marks obtained in each course, final mark of the student (average of all the marks), their final grade (A,B,C,D or F) and whether or not they move on to the next semester. In addition, after all data entry is completed, print The number of students who move on to the next semester and the number who do not. The student with the highest final mark (ignore the possibility of a tie). Grades are calculated as follows: A = 70 and over, B = 60 (inclusive) -70, C = 50(inclusive)-60 D =…You are tasked with writing a program to process students’ end-of-semester marks. For each student you must enter into your program the student’s id number (an integer), followed by their mark (an integer out of 100) in 4 courses. A student number of 0 indicates the end of the data. A student moves on to the next semester if the average of their 4 courses is at least 60 (greater than or equal to 60). Write a program to read the data and print, for each student: The student number, the marks obtained in each course, final mark of the student (average of all the marks), their final grade (A,B,C,D or F) and whether or not they move on to the next semester. In addition, after all data entry is completed, print The number of students who move on to the next semester and the number who do not. The student with the highest final mark (ignore the possibility of a tie). Grades are calculated as follows: A = 70 and over, B = 60 (inclusive) -70, C = 50(inclusive)-60 D =…
- In business applications, youare often asked to compute the mean and standard deviation of data. The mean issimply the average of the numbers. The standard deviation is a statistic that tellsyou how tightly all the various data are clustered around the mean in a set of data.For example, what is the average age of the students in a class? How close are theages? If all the students are the same age, the deviation is 0.Write a program that prompts the user to enter 10 numbers and displays the meanand standard deviations of these numbers using the following formula:At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 5 points are deducted. Write a program that asks the user for his initial grade and the late submission time (in minutes), and then displays the final result. Sample Run 1: Enter your initial grade: 82 Enter the late submission time (in minutes): 6 Your final grade is 52 Sample Run 2: Enter your initial grade: 115 Grades should be between 0 and 100 Sample Run 3: Enter your initial grade: 43 Enter the late submission time (in minutes): 10 Your final grade is 0At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 5 points are deducted. Write a program that asks the user for his initial grade and the late submission time (in minutes), and then displays the final result. Sample Run 1: Enter your initial grade: 82 Enter the late submission time (in minutes): 6 Your final grade is 52 Sample Run 2: Enter your initial grade: 115 Grades should be between 0 and 100 Sample Run 3: Enter your initial grade: 43 Enter the late submission time (in minutes): 10 Your final grade is 0 Sample Run 4: Enter your initial grade: 72 Enter the late submission time (in minutes): -2 Time should be positive
- A non-profit organization has asked you to build a computer programming system thatkeeps up with the number of hours a volunteer has worked each week.Since no volunteer will work more than three days, the organization wants the volunteersto be able to enter their name and the hours volunteered for each of the three days theycame in each week.The program will also make sure that the data entered is valid. The program will make surethe hours entered are a positive number and that the hours are no more than 8 hours eachday. If the volunteer enters an invalid number of hours, then the program will ask them tore-enter the value and repeat the data entry process.You can follow these steps to guide you through the process:1. Create a public class named Volunteer and one named VolunteerEntry.2. The Volunteer class will contain instance variables for each object to hold datapertaining to each object as needed. It will store the values for the volunteer’s name, IDand total hours worked for the…Your customer needs an automated system to patrol the highways. The job of the system is to collect the following information on vehicles traveling down a certain stretch of highway: license plate number, current speed, and speed limit. A program is required to determine if a speeding ticket is needed for each set of data. Ticket will only be issued when number of miles per hours (mph) over the speed limit is at least 5 mph. Ticket prices are calculated as follow: base + fee * <number of mph over the speed limit>. The base is always $150 and the fee per mph over the speed limit is varied according to number of mph over the speed limit. The fee per mph over the speed limit is $5 when number of mph over the speed limit is no more than 20 mph. However, the fee per mph over the speed limit is $10 when number of mph over the speed limit is between 20 mph and 50 mph. In addition, a ticket of $1000 is automatically given to vehicle when number of mph over the speed limit is more than 50…You are asked to write a program for a company that allows the manager to enter the salaries of 8 employees. The program should then output the number of salaries that are greater than or equal 2000 and the number of salaries that are less than 2000 in a chart style. Your program should be well designed and clear. Sample run Enter Salary for employee 1: 1500 Enter Salary for employee 2: 2200 Enter Salary for employee 3: 1950 Enter Salary for employee 4: 1400 Enter Salary for employee 5: 2600 Enter Salary for employee 6: 2450 Enter Salary for employee 7: 1200 Enter Salary for employee 8: 1230 3 salaries greater than or equal 2000: $$S 5 salaries less than 2000: $$$$S