2. Create a program which stores some information about an employee information: ID number, full name, age and monthly salary. The program must also display the information. Example output: Employee Information ID number Full Name Age Monthly Salary: 21000 : 331415 : Mark Mahinay : 27
Q: 2. Write a simple payroll program that will display employee's information. The program should…
A: pay roll program that will display employee's information
Q: 1.3 Lab 1(a): Driving costs Driving is expensive. Write a program with two inputs, a car's…
A: Please find the answer below:
Q: Write a program that has the followings: · A text will be entered by the user. · After getting the…
A: Code snippet:
Q: Suppose the Great Frederick Fair wants to update its ticketing software. They need you to write a…
A: Answer: A required Python program is as follows, #Set the constant BASIC_PRICE=40…
Q: Task 1: Create a program that accepts a number and determine the factor of the number. Display the…
A: Here our task is to write a C++ program that accepts a number as input and determine the factor of…
Q: Write a program for a pharmacy to generate bills. The program should ask about the code associated…
A: The program is written in C++ #include <iomanip> #include <iostream> using namespace…
Q: Write a program which should display 4 items (keyboard, mouse, monitor and speaker) with their…
A: Note: Since no programming language is mentioned. I am attempting this in python. if you need it…
Q: 3. Write a program that plays a guessing game with the user. The program should generate a random…
A: According to the information given:- We have to follow the instruction in order to create guess game…
Q: Write a program to create a customer’s bill for a company. The company sells only five different…
A: Actually program is a executable software that runs on a computer.
Q: 2. Write a program for the Air Force to label an aircraft as military or civilian. The program is to…
A: Here is the approach : Create the two integers to take input for the plane speed and the plane…
Q: Write a program that displays the output of Value = value++ + value++; Value = ++value + ++value;…
A: Please find the answer below :
Q: Develop a program that calculates the final score and the average score for a student from his/her…
A: Main() Method : Declare variables for name, class test score, test score, assignment score, exam…
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: s. A computer shop wants to make a computerized receipt for the purchases made by different…
A: Objective: This program receives purchase details from the user for a shopkeeper. The values of the…
Q: program3_3.py Write a wholly creative quiz program that consists of three original questions that…
A: The program in python is print("Quiz starts now")answer1=int(input("What is…
Q: 1. You are working for the census bureau and you need to write a program to count the number of…
A: Note: We are authorized to answer two questions at a time. Since you have asked more than one…
Q: Consider records of employees each consists of employee's first name (string), number of hours…
A: I give the code in python along with output and code screenshot
Q: 1. In this program you will produce an output of the total tax based on your income and marital…
A: In the below steps you can find the complete code in python. Since there is no language given in the…
Q: Write a program that computes and displays the charges for a patient's hospital stay. First, the…
A: Program: // Header files section#includeusing namespace std; //Functions prototypesdouble…
Q: rice calculations, using the rules*: • The basic price of a ticket is $40. • Senior citizens (age >=…
A: the program is an given below : def main(): ticket_base_price = 40 name = input('Enter…
Q: Write a program that asks the user for the number of males and the number of females registered in a…
A: Note: As no language is specified, answering the given coding question in python language. # Input…
Q: Write a program that will take in basic information from a student, including student name, degree…
A: * Your not mentioned to write a particular programming language so we provide python code for you.…
Q: What will following segment of code output? int x = 5; if (x != 0) cout << "x is a non-zero…
A: The problem is based on conditional statement and output statement.
Q: 9) Write a program that takes in the user's name and age. Then displays his/her name's initial…
A: #include<iostream> using namespace std; int main() // main function { string name,…
Q: Write a program that helps a company manage salaries of its employees. Your program should ask for…
A: EXPLANATION - A program is created . On program three variables are declared one for hours worked…
Q: Create a program that takes in a student first name and average mark obtained, the system should the…
A: import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner…
Q: Write a program that displays a table of inches from 1-12 and equivalent lengths in centimeters. You…
A: Please Indent the code as shown below :
Q: 1. Write a program which calculates the monthly Budget of a person. The program will read the…
A: Sample Response: //Java menu-deriven program that cacluates the different monthly bills according to…
Q: Rebecca Oyewole Project 4 This program calculates a customer receipt # showing each item ordered,…
A: Answer is given below-
Q: IN PYTHON Write a script which uses the input function to read a string, an int, and a float, as…
A: In Python, input() method is used to take the input from the user. int() method is used to convert…
Q: program4_2.py Write a program that displays a table of inches from 1-12 and equivalent lengths in…
A: Pseudocode: initializes variables inch_to_cm=2.54, inch=1 take while loop until inches<=12…
Q: Assume you are a college professor and have to average grades for 10 students. Write a program that…
A: Step-1: Start Step-2: Declare an array arr of size 10 Step-3: Declare two variables sum and avg…
Q: Write a program that takes balance of a user's account as input.it should then ask the user how much…
A: The answer is given in next step:-
Q: Write a program that asks the user to enter the monthly costs for the following expensesincurred…
A: Code def main(): print('Enter monthly expenses')loan = float(input('Enter loan payment amount:…
Q: 8. Write a program that will compute delivery charges based on weight Weight Up to 100 lb Charge per…
A: A program is as follows, Code: %Get the input from the user weight=input('Please enter weight of…
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: Create a program that takes in a student’s full names and marks for 3 In-class exercises, then…
A: Since the programming language is not mentioned in the question. So, we have solved this question…
Q: Student need to draw the process flow for calculating the Income tax of an employee. Write a java…
A: Main logic:- if(AnI>50000) { Additional=AnI-50000; if(AnI>50000 &&…
Q: 2.12 LAB: Driving costs Driving is expensive. Write a program with a car's gas mileage…
A: Code: def driving_cost(driven_miles, miles_per_gallon, dollars_per_gallon): return (driven_miles…
Q: program3_4.py Write a creative quiz program with three original questions that you make up as…
A: PROGRAM CODE: states = int(input('How many states in the USA ? ')) // take answer of first question…
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: At a certain school, student email addresses end with @student.college.edu, while professor email…
A: Lets see the solution.
Q: 2.13 LAB: Driving costs Driving is expensive. Write a program with a car's miles/gallon and gas…
A: According to the question below the solution: Output:
Q: The following program will run, but the user will have difficulty understanding what to do. How would…
A: The entire program is written without any line breaks. In order tom improve readability put every…
Q: Write a program that takes in the user’s name and age. Then displays his/her name’s initial letter…
A: Algorithm: Start Var name, age Accept name from user Accept age from user Display(name[0]) Display…
Q: 8. Write a program that will determine the salary of an employee based on his or her rank as…
A: Note: since programming language is not mention , we are providing solution in c++ . please repost…
Q: 3. Write a program that computes and interprets the Body Mass Index (BMI). The program prompts the…
A: Prompt to enter the weight in pounds. Store the value in a variable. Prompt to enter the height in…
Q: 7) Write a program that asks the user the number of hours an employee worked and his hourly wage,…
A: code:-- #include <iostream>using namespace std; int main(){ // to store the total_hour and…
Q: Mr. Allan is a salesman and travels around UAE to check the different stores from Sunday to…
A: Please find the answer below :
USE C++
Step by step
Solved in 3 steps with 2 images
- 4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }program3_3.pyWrite a wholly creative quiz program that consists of three original questions that you make up according to the specifications below. Provide positive or negative feedback to the user immediately after each question is answered. The quiz doesn't have to be scored. One question should require user input of type int One question should require user input of type float One should require a string inputWrite a program to create a customer’s bill for a company. The company sells only five different products: TV, VCR, Remote Controller, CD Player, and Tape Recorder. The unit prices are $400.00, $220.00, $35.20. $300.00, and $150.00, respectively. The program must read from the keyboard the quantityof each piece of equipment purchased. It then calculates the cost of each item, the subtotal, and the total cost after an 8.25% sales tax. The input data consists of integers representing thequantities of each item sold. These integers must be input into the program in a user-friendly way; that is the program must prompt the user for each quantity as shown below. The numbers in boldface italic show the user’s answers.
- Write a program that will take in basic information from a student, including student name, degree name, number of credits taken so far, and the total number of credits required in the degree program. The program will then calculate how many credits are needed to graduate. Display should include the student name, the degree name, and credits left to graduate. Step 4: Write the exact output you would expect from the following line of code if the user of the program enters “Bill Jones”. (Reference: Displaying Items, page 40 – 41). Display “The student’s name is “, studentNameWrite a program that asks the user to enter the monthly costs for the following expensesincurred from operating his or her automobile: loan payment, insurance, gas, oil, tires, and maintenance. The program should then display the total monthly cost of these expenses,and the total annual cost of these expenses.Write a program that computes the molecular weight of a carbohydrate (ingrams per mole) based on the number of hydrogen, carbon, and oxygenatoms in the molecule. The program should prompt the user to enter thenumber of hydrogen atoms, the number of carbon atoms, and the numberof oxygen atoms. The program then prints the total combined molecularweight of all the atoms based on these individual atom weights:Atom Weight(grams I mole)H 1.00794c 12.01070 15.9994For example, the molecular weight of water (H20) is: 2(1.00794) +15.9994 = 18.01528.
- The following function will print to the console any text that the user enters. How can you invoke this function in a program? Write the line of code you need. function repeat(user_input) { console.log (user_input); } java language1. Federal law requires that hourly employees be paid “time-and-a-half” for work in excess of 40 hours in a week.For example, if a person’s hourly wage is $12 and he or she works 60 hours in a week, the person’s gross pay shouldbe (40 *12) + (1.5 *12 * (60-40)) = $840.Write a program that requests the floating number of hours a person works in a given week and the person’s hourlywage as input, and then displays the person’s gross pay. Save it as overtimePay.pyprogram4_2.pyWrite a program that displays a table of inches from 1-12 and equivalent lengths in centimeters. You can find the conversion factor online if necessary. Store this factor in a properly named constant in your program. Display the inches accurate to one decimal place in a column 6 characters wide and the centimeters accurate to two decimal places in a column 8 characters wide (see page 71). See Required Output.
- program3_4.pyWrite a creative quiz program with three original questions that you make up as specified below. Immediately after each question is answered, the program should respond positively to right answers or provide the correct answer if the user's answer is wrong. The quiz doesn't have to be scored. One question should require an answer of type int. One question should require an answer of type float. One should require a string answer.The steelwork.py program, given below, creates three types of steel objects. Carbon steel (Steel) is made of carbon and iron, alloy steel (AlloySteel) contains chromium in addition to carbon and iron. Stainless steel (StainlessSteel) contains nickel and a higher proportion of chromium. Write the missing code, in the designated locations (#TODO), in order for the program execution to yield the following output: ['Steel01', 0.6, 91] ['ALSteel02', 0.6, 91, 1] ['SSteel02', 0.6, 91, 11, 2]In C++, write a program that calculates and prints a monthly paycheck for an employee. The net pay is calculated after taking the following deductions from the employee's gross salary: Federal Income Tax: 17.5% State Tax: 9.1% Social Security Tax: 6.2% Medicare Tax: 1.45% Retirement Plan: 9.29% Health Insurance: $51.48 Life Insurance: $3.71 Your program will prompt the user to input the employee ID, the employee name, and the employee's monthly gross salary. The program will calculate the deductions listed above, along with the percentage of take home pay (defined as the net pay divided by the gross salary). After calculating each deduction and percentage, the output will be printed to the screen (see example output below). Requirements All decimal numbers must be formatted to 2 decimal places. Ask for the employee's ID first, then full name (can include spaces), then the salary. The prompt to enter the salary must include the employee name. The employee ID MUST be…