Write a program that prompts the user to enter the name, the number of children, and the basic salary of an employee. The program will then: Calculate the bonus: Calculate the new salary:
Q: Write a program which prompts the user for their age. If they are 19 or younger inform them that…
A: "Since you have not mention any programming language, so we will write this program in C++…
Q: Write a program that prompts the user to enter four integersand then displays all possible ways of…
A: Since, here no programming language is specified. So, we are providing the solution in Java. The…
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 which prompts the user for their age. If they are 19 or younger inform them that…
A: Answer to the above question is in step2.
Q: Write a program that lets the user guess whether the flip of a coin results in heads or tails. The…
A: Answer : #include<iostream>#include<ctime>#include<cstdlib>using namespace std;int…
Q: Write a program that converts pounds into kilograms. The program prompts the user to enter a value…
A: PROGRAMimport java.util.Scanner;public class Shubham { public static Void main(string[] args) {…
Q: Write a program that will ask the user to enter an integer number and display the message ‘ Prime ‘…
A: Programming language is missing in the question. So we will answer this program in C++. If you want…
Q: Write a program that reads the income of a user and computes his/her income taxes according to the…
A: 1:Read the income 2:If income is negative then print error and exit 3:Determin the tax slab as per…
Q: Write a program that prompts the user to enter five test scores and then prints the average test…
A: Note: since the programming language is not the question is implemented using C++.
Q: Write a program that asks the user to enter the current price of a product. In the next three years,…
A: Conversion from percentage to decimal value : For x % percentage, the decimal equivalent of the x%…
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 prompts the capacity, in gallons, of an automobile fuel tank and the miles per…
A: Program: //include the header file #include <iostream> using namespace std; //definition of…
Q: Write a program that determines a student's grade. The program will read three types of scores…
A: The program is written in C++ Language. Check the program screenshot for the correct indentation.…
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: 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 asks the user to enter a month (1 for January, 2 for February, etc.) and then…
A: Code: #include <iostream> using namespace std;//here is the main functionint main(){ //here…
Q: Write a program that asks the user for a number, and multiplies it by 3 then prints out the result:…
A: Start Prompt the user for input Parse it as integer Multiply the number by 3 Print the result Stop
Q: Write a program that prompts the user to enter an integer and checks whether the number is divisible…
A: The c++ program is given below, as language is not mentioned.
Q: Write a program that calculate electricity bill. The program prompts the user to enter the amount of…
A: As there is no programming language mentioned program is attempted in python langugae. user has to…
Q: Write a program that prompts the user to enter the month and first day of the month, and displays…
A: /*program that prompts the user to enter the month and first day of the month, and displays all the…
Q: Write a program that lets the user guess whether a flipped coin displays the head or the tail. The…
A: GIVEN: Write a program that lets the user guess whether a flipped coin displays the head or the…
Q: Write a program that reads from the user the initial Kilometers of the car, the current Kilometers…
A: Java program for the above fuel consumption problem is given below in step 2.
Q: Write a program in Python that reads the following information and prints a payroll statement:…
A: answer : import java.util.scanner; public class employeepayroll { public static void main(string[]…
Q: Write a program that will ask the user to enter salary amount. And then compute for the TAX amount.…
A: As the language is not specified answer written in c++ 1)Read input 2)Using if else check…
Q: Write a program that asks the user to enter the number of students, then enter the grades of these…
A: I have provided C++ CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS------------
Q: rite a program for an airline company. that asks the user about his luggage weight. * if the luggage…
A: NOTE: SINCE THE LANGUAGE OF THE PROGRAM IS NOT MENTIONED, I HAVE USED PYTHON FOR THE SOLUTION.…
Q: Write a program that helps the teacher to correct the exam automatically. The program should work as…
A: Accept input as string Then count the number of matching responses of each student Based on the…
Q: Write a program that converts pounds into kilograms. The program prompts the user to enter a value…
A: Lets see the solution.
Q: Write a program that prompts the user to enter the numberof students and each student’s name and…
A: Program: import java.util.*; public class Main { static void LowestScores(String name[], float…
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 calculate electricity bill. The program prompts the user to enter the amount of…
A: C program #include <stdio.h>int main(){ int un; float amt; /* Input units consumed…
Q: Write a program that prompts the user to enter an integer from 1 to 15 and displays a pyramid.
A: #include <iostream>#include <iomanip> int main(){ std::cout << "Enter the…
Q: Write a program that convert one killometer into miles per hour
A: (C++) #include <bits/stdc++.h>using namespace std; // Function to convert kmph to…
Q: Write a program that prompts the user to enter the year and first day of the year, then displays the…
A: Given, we get- year from the user, first day of the year from user. based on the above data, we…
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: Write a program that prompts the user to enter the month and year and displays the number of days in…
A: February has 28 days in non-leap years and has 29 days in leap years
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 that computes how much a customer has to pay after purchasing two items. Make the…
A: Step 1 : Start Step 2 : Take user input for the price of Item 1 and item 2. Step 3 : Calculate the…
Q: • Write a program that computes the average of 5 students grades which are entered by the user.…
A: Please find the answer below :
Q: Write a program that reads from the user the initial Kilometers of the car, the current Kilometers…
A: Required: Write a program that reads from the user the initial Kilometers of the car, the current…
Q: Write a program that reads the 10 student grades () from keyboard and calculates the class average.
A: Code in python programming language #Program to read grades of 10 students from teh keyboard and…
Q: Write a program that asks the user to enter two numbers, obtains the two numbers from the user and…
A: Given: Write a program that asks the user to enter two numbers, obtains the two numbers from the…
Q: Write a program that prompts the user to enter the number of items and each item’s name and price,…
A: Step 1:- Program Approach:- 1.Include the header files 2.Declare variables, an array of data type…
Q: Write a program that helps the user count his change. The program should ask how many quarters the…
A: Java program is asked for the given requirements.
Q: CREATE A PROGRAM THAT ASKS THE USER IF HE/SHE IS PWD OR SENIOR CITIZEN IF YES, THEN GIVE 20% OFF IF…
A: As no programming language is mentioned here, we are writing this program in python price =…
Q: write a python program that gives the exact change for a money amount of something bought
A: cost = float(input('Enter cost of item: '))amt_paid = float(input('Amount paid for this item:…
Q: Write a program that prompts the user to enter the number of students and each student’s score, and…
A: Given:- Write a program that prompts the user to enter the number of students and each student’s…
Step by step
Solved in 2 steps with 1 images
- CSCI250L Sample Exam 1 Spring 2020-2021 Question1 (50 pts) Write a program that prompts the user to enter the name, the number of children, and the basic salary of an employee. The program will then: Calculate the bonus: bonus = number of children * $25 Calculate the new salary: new salary Apply a tax of 10% and find the paid salary: paid salary = new salary * (1 – tax) %3D salary + bonus The program will then display all the information needed as shown in the sample run below Sample Run: Enter the name of the employee: Jamal Enter the number of children of the employee: 4 Enter the salary of the employee (in $): 1500 The calculated bonus is $100 for 4 children. The new salary is $1600.0 The paid salary for Jamal is $1440.0CSCI250L Sample Exam 1 Spring 2020-2021 Write a program that prompts the user to enter the name, the number of children, and the basic salary of an cmployee. The program will then: Calculate the bonus: Calculate the new salary: • Apply a tax of 10% and find the paid salary: The program will then display all the information neceded as shown in the sample run below Sample Run: Enter the name of the employee: Jamal Enter the number of children of the employee: 4 Enter the salary of the employee (in $): 1500 The calculated bonus is $100 for 4 children. The new salary is $1600.0 The paid salary for Jamal is $1440.0 Page 2 1 3Transcribed Image Text Create a program that allows the user to do some basic functions. First, ask the user if they would like to find out sqrt, log or factorial of a number, then return the results. Here is the sample output: Welcome to the simple math helper. What would you like to calculate? 1. Sqrt 2. Log 3. Factorial > 1 Enter the number to sqrt: >9
- Transcribed Image Text Write a program that asks for the principal, the annual interest rate, and the number of times the interest is compounded. It should display a report similar to the following: Interest Rate: 4.25% Times Compounded: 12 Principal: $ 1000.00 Interest: 43.33 Final balance: $ 1043.33Odd Even Number Problem Description Even Numbers are integers that are exactly divisible by 2, whereas an odd number cannot be exactly divided by 2. Example of even numbers are 2,4,6,8 and odd numbers are 1, 3, 5, 7, 9. Input The first line input contains an integer, which determines the number of test cases. Each of following lines represent sequence of integers that ends with 0. 2 34 1 8 5 22 0 10 7 16 -2 0 Output For each test case, the output will present the size of oddQueue and evenQueue following with the integers of odd and even numbers. oddQueue 2: 1 5 evenQueue 3: 34 8 22 oddQueue 1: 7 evenQueue 3: 10 16 -2 ** Your task is to write a program that will read the input and identify whether it is an odd number or even number. /******************************************************************************* Compilation: javac Queue.java** The Queue class represents a first-in-first-out (FIFO) queue of generic items.* It supports the usual enqueue and dequeue…11 Worksheet 5 Note:Solution using Matlab Code Write a program that prompts the user to enter a number within the range of 1 through 7, those numbers represent the weekdays as shown in the table. If the entered number is more than 7, display 'invalid day'. Number 1 2 3 4 5 6 7 Day Sunday Monday Tuesday Wednesday Thursday Friday Saturday Type of the day Workday Workday Workday Workday Workday Weekend Weekend The program should continue to repeat itself 10 times, after which, the program should stop. Furthermore, the program should be able to show a message saying if this is a 'workday' or a 'weekend day'. Note: you are required to add a comment beside your command. Hint: to add a comment you may use the % sign. thank guys you dodo great.
- Slot Machine SimulationA slot machine is a gambling device that the user inserts money into and then pulls a lever (or presses a button). The slot machine then displays a set of random images. If two or more of the images match, the user wins an amount of money that the slot machine dispenses back to the user. Create a program that simulates a slot machine. When the program runs, it should do the following: Asks the user to enter the amount of money he or she wants to enter into the slot machine. Instead of displaying images, the program will randomly select a word from the following list: Cherries, Oranges, Plums, Bells, Melons, Bars To select a word, the program can generate a random number in the range of 0 through 5. If the number is 0, the selected word is Cherries; if the number is 1, the selected word is Oranges; and so forth. The program should randomly select a word from this list three times and display all three of the words. If none of the randomly selected words match, the…Computer Science PYTHON PROGRAMMING Write a program that generates a random number in the range of 1 through 100, and asks the user to guess what the number is. If the user's guess is higher than the randomly generated number, the program should display "Too high, try again." If the user's guess is lower, the program prints "Too low, try again." If the user guesses the number, the application should congratulate the user and generate a new random number so the game can start over. Keep track of the number of guesses a user makes before guessing the correct one and display it with the congratulatory message when the user guesses the number correctly. For this assignment, create functions that: generate and return a random number between 1 and 100. format and return the failure and congratulatory messages. Put these function in a module called helper.py and put the rest of the code in game.py. The game module must import the helper module. Please provide both helper.py & game.py…Activity 7 Guessing Game There is list of word, the interpreter will choose a word randomly. The user has to input his names and then, he will be asked to guess the word by accepting any alphabet. If the random word contains accepted character, it will be shown as the output (with correct placement) else the program will ask you to guess another alphabet. User will be 50% of the total number of characters to guess the complete word. Requirements 1. There must be 10 words of different length. 2. The words must be in random. 3. It should accept lower case and upper case letter 4. The number of turns left must be display 5. All wrong characters are also display
- Lap Timer Tool Write a Python (GUI program) that asks the user to enter the number of times that they have run around a racetrack, and then uses a loop to prompt them to enter the lap time for each of their laps. When the loop finishes, the program should display the time of their fastest lap, the time of their slowest lap, and their average lap time.C# language MORSE CODE CONVERTERDesign a program that asks the user to enter a string and thenconverts that string to Morse code. Morse code is a code whereeach letter of the English alphabet, each digit, and variouspunctuation characters are represented by a series of dots anddashes. Table 8-9 shows part of the code. Needs to be two labels, two text boxes and click button for conversionReminder: This is a bare code without any class or function/method heading around the code. Just the nested loop