Problem specification Create a program that allows the user to enter a person's age (in years) and current salary. Both input items should be entered as integers. The program should display a person's total earnings before retirement at age 65, using annual raise rates of 3%, 4%, and 5%. Display the total earning bre amounts as integers.
Q: Floating point numbers are initialized to type Float or Double data type. Develop a code which asks…
A: SOLUTION logic use necessary header file declare main method declare variable of integer type…
Q: Projectile Motion Write a program to provide information on the height of a ball thrown straight up…
A: Python Code:- ##This is getInput() function, def getInput(): ##First ask user to enter the…
Q: Speeding Violation Calc Design a program that calculates and displays the number of miles per hour…
A: Actually, algorithm is an step by step process.
Q: Introduction to Python programming
A: # prompt the user to enter the number of packages purchased. number = int(input("Enter the number of…
Q: Days of the Week Write a program that asks the user fora number in the range of 1 through 7. The…
A: python code
Q: urbo c++ code for The utilities commission has decided that the electric company overcharged its…
A: Include necessary header file. In main function declare a integer variable kilowatt and float…
Q: a. Using the SELECT CASE Structure, write the code of a Visual basic program that will calculate and…
A: Solution :: a)
Q: Design a retirement planning calculator for Skulling Financial Services by pseudocode or flowchart.…
A: The following is the required Pseudo code that gives output of the remaining saving balances: Start…
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Since you have not mentioned programing language I'm doing this in Python.
Q: 3. Process customer record A program is required to read a customer's name, a purchase amount and a…
A: ANSWER:-
Q: Problem Statement Write a program to help Florence decide which snacks and beverages to serve her…
A: the c ++ code is an given below :
Q: PART A: Selection Statement You are required to write a program to compute the area of square (area…
A:
Q: A software company sells a package that retails for $99. Quantity discounts are given below:…
A: Actually, given information: A software company sells a package that retails for $99. Quantity…
Q: QUESTION2.Energy Drink Consumption A soft drink company recently surveyed 12,467 of its customers…
A: public class Main { private double customers; private double thoseThatPurch;…
Q: Write a flowgorithm program that will calculate a person’s mobile phone bill based on plan chosen…
A: Here is the solution:
Q: Payroll Program with Input Validation Design a payroll program that prompts the user to enter an…
A: hourly_pay_rate = float(input("Enter employee's hourly pay rate (in $): ")) # taking user input…
Q: Problem 3 Write a program that will calculate the volume of a box. The user is required to enter 3…
A: code snippet:
Q: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food…
A: Solution Here is the source code of the program "main.java" // We are import the necessary package…
Q: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food…
A: This program calculates the percentage of calories from fat grams. Number of fat grams and calories…
Q: Java Script Questions from number 2 to number 4
A: (2) Complete program: <! DOCTYPE html> <html> <body> <p>Question…
Q: Problem 1: Do not use methods. Design a program that will perform basic grade computation. The…
A: Implementation the code:
Q: IPO Chart/ Flow Chart/Pseudocode Write a guessing game where the user has to guess a secret number.…
A: Input Process Output Guess Repeat the below process: Increment Count If Guess<Number…
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: Swift code to solve the given problem
Q: Steven bought 375 shares of stock at a price of RM35.00 per share. He must pay her stockbroker a 2…
A: As no programming language is mentioned, it is solved using basic C++
Q: Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food…
A: Dear Student, As no language is mentioned I am doing it in C++.
Q: A toll road is a road that requires a fee to be paid when driven on. Sometimes, the fee charged can…
A: The objective of the Main.java program is to prompt user to enter the type of vehicle and number of…
Q: Construct a program that calculates the course overall grade point average (GPA). The program must…
A: Actually, program is a executable software that runs on computer.
Q: Complete the given program so that will ask the user to enter 5 fruit items given the name, price,…
A: #include <iostream> #include <string> using namespace std; struct fruitData {…
Q: A toll road is a road that requires a fee to be paid when driven on. Sometimes, the fee charged can…
A: Program description: The java program, TollRoadProgram.java that prompts the user to enter the type…
Q: c++ Energy Drink Consumption A soft drink company recently surveyed 16500 of its customers and…
A: #include<iostream> #include<cmath> using namespace std; int main()…
Q: Write a program that will compute the students average •The user will input the following:…
A: Only the 1st question is answered. Please repost the other questions in another doubt session. As…
Q: 1. Write a program that prompt the user to enter product unit price and quantity purchased. The…
A: The given problems are to be solved in C++ programming language where required inputs will be taken…
Q: atures of the water. The formula to compute the energy is Q = M * (finalTemperature –…
A: Code: import java.util.Scanner; public class Main { public static void main(String[] args) {…
Q: Write a Python program for an online MoonBucks coffee order. Coffee is sold by the pound, and the…
A: Program code: #name and course number. #ask for number of pounds for order coffee= float(input('No…
Q: The credit plan at TidBit Computer Store specifies a 10% The amount of principal for a month is…
A: Given: The month number (beginning with 1) The current total balance owed The interest owed for…
Q: Problem Statement for Stock Transaction Program George uses the services of a brokerage firm to buy…
A: n = int(input("Enter the number of shares in the block: "))cp = float(input("Enter the price per…
Q: Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a commission of 5% of…
A: In the given question, programming language is not mentioned to write the code.So, I choose java to…
Q: Sales Prediction The East Coast sales division of a company generates 58 percent of total sales.…
A: Hey there, I am authorised to answer any one question at a time when there are multiple questions…
Q: write a program that asks the user to enter the number of packages purchased. the program should…
A: Initially, the package is of $99 If you buy less than 10, no discount If you buy 10-19, the discount…
Q: Programming Problem: Grading system conversion from percentage to numerical. The program will ask…
A:
Q: The monthly payment on a loan may be calculated by the following formula: N Rate * (1 + Rate)* * L/;…
A: NOTE: SINCE THE LANGUAGE OF THE CODE IS NOT MENTIONED, I HAVE USED C++ FOR THE SOLUTION. Define…
Q: Program2: Box Office A movie theater only keeps a percentage of the revenue earned from ticket…
A: I provide the code and output screenshot in c++ as per your requirement
Q: The monthly payment on a loan may be calculated by the following formula: Rate-(1+Rate)N Раутеnt 3D…
A: #include<iostream>#include<math.h>using namespace std;int main(){ int n; float…
Q: Problem Description: The bird of paradise called the Helipixsal is renowned for its magnificent tail…
A: lengths of feathers looping conditions output Explanation: The code is: def main(): num_feathers =…
Q: AVA Programming Language: According to the American Heart Association, as you exercise you should…
A: The code used: import java.util.Scanner; public class HeartRate { public static void…
Q: Software Šales A software company sells a package that retails for $99. Quantity discounts are given…
A:
Q: of stock at a price of $35.00 per share. She must pay her stockbroker a 2 percent commission for the…
A: c++ code Stock Commission Kathryn brought 750 shares of stock at a price of $35.00 per share. She…
Q: A car’s miles-per-gallon (MPG) can be calculated with the following formula:MPG 5 Miles driven…
A: C++ program is given below
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Since you have not mentioned the programming language, we have provided the code in Python language.
Q: Feet to Inches Problem One foot equals 12 inches. Use pseudocode to design a function named…
A: As per the given question, following things are required : Pseudocode function that converts feet…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Trending now
This is a popular solution!
Step by step
Solved in 2 steps
- Print numbers 0, 1, 2, ..., userNum as shown, with each number indented by that number of spaces. For each printed line, print the leading spaces, then the number, and then a newline. Hint: Use i and j as loop variables (initialize i and j explicitly). Note: Avoid any other spaces like spaces after the printed number. Ex: userNum = 3 prints: 0 1 2 3Develop a solution that will calculate the average temperature, given a set of temperatures. The number of temperatures may differ from time to time. (Use a trip values to stop the processing of the loop.) Test the solution with the following 10 temperatures. 78 90 85 80 87 83 75 90 86 70In this assignment you will write a program that shows the valid moves of chess pieces. Your program will draw a board with 64 squares using the traditional layout, next ask the user to choose a move, and then, depending on the user's choice, redraw the board with the selected chess piece and its valid moves. Please see the examples of valid moves of chess pieces and the traditional chess board layout below:
- Python For this lab, you will use a tuple to represent a student record. A student record consists of the student’s name, year, and GPA. For example, (“John”, “Senior”, 3.7) is a record for John who is a senior with a 3.7 GPA. You will write a program that prompts the user for the number of records to enter. Then it reads input from the user for each record. Remember that each record consists of a student’s name, year, and GPA. It then prints the record of each student as shown below. Functions: You will write the following functions: read_records(n) Read n number of records and return a list of records. print_records(records) Takes in a list of records and print each one. main() Prompts the user for the number of records to read, get a list of records from the user, and print the records. Optional: print the average GPA of the students. Sample run: How many students record to enter: 2 Enter student's name: John Enter student's year: junior Enter…At a certain university, students have to submit their exams online. The administration decides that for each minute of late submission, 6 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 46 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 positiveAt 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
- Grocery List. When shopping for groceries, it's helpful to know how much it's going to cost you in advance - this helps you avoid an embarrassing situation in the check-out line. For this assignment, you're going to write a simple program that asks you for the name, quantity, and price of two grocery store items. It will then generate a grocery list for you, complete with the total price. (Later in the semester, we'll learn how to make a program that can create much larger lists, but we'll start small here). Call the file Assignment1B (with a file extension of .cpp, .cs or .java) Sample Output: What're you buying? Ice Cream How many? 2 What do they cost? 2.25 What else're you buying? Celery How many? 5 What do they cost? 1.74 Your list: Ice Cream (2) $2.25 ($4.50 total) Celery (5) $1.74 ($8.7 total) Total Cost: $14.2 using Java programmingA junior magician has picked a secret number. He has hidden it in a variable named secret_number. He wants everyone who run his program to play the Guess the secret number game, and guess what number he has picked for them. Those who don't guess the number will be stuck in an endless loop forever! Unfortunately, he does not know how to complete the code. Your task is to help the magician complete the code in the editor in such a way so that the code: will ask the user to enter an integer number; will use a while loop; will check whether the number entered by the user is the same as the number picked by the magician. If the number chosen by the user is different than the magician's secret number, the user should see the message "Ha ha! You're stuck in my loop!" and be prompted to enter a number again. If the number entered by the user matches the number picked by the magician, the number should be printed to the screen, and the magician should say the following words: "Well done,…Write a program that prompts the user to enter a sequence of numbers until a -999 is entered. It will print the numbers the user entered, five number in a row,with a before the first number and after the last number in each row. For example, Enter a number (-999 to stop): 23Enter a number (-999 to stop): 15Enter a number (-999 to stop): 1Enter a number (-999 to stop): 7Enter a number (-999 to stop): 9Enter a number (-999 to stop): 21Enter a number (-999 to stop): 17Enter a number (-999 to stop): 33Enter a number (-999 to stop): -999[23 15.17 9] [21 17 33]
- write a program that read an excel sheet that contains some animals' information. The information consists of animal name, its weight in N, its height in m, and its availability in Iraq. The program will ask the user to select one of the available animals, then print the corresponding .informationPart 1: Complete the survey. Part 2: Peek-a-boo is a fun game that little kids like to play. To simulate this game on the computer, write a program that will generate a random number between 1 and 4. Then, will print to the screen the animal name associated to that number. The animal names used will be: pig when a 1 is generated cow when a 2 is generated chicken when a 3 is generated horse when a 4 is generated If your program generates a 3, the output will be: chicken The player will then enter a 1 if they would like to play again or anything else to exit the program. If the player enters "1 1 1 0", the output will be: horse chicken cow horse For coding simplicity, follow each output animal by a space, even the last one. Hint: To make testing easier, seed your random number generator with 0.Write a program to simulate a bank transaction. As the banker, create a single pin number for all customer that enter the bank (a constant variable). You are now ready for customer transactions. Prompt the customer for their name and pin number. If the pin number does not match your banker pin number, then they are not a valid customer. Send them away. If the customer is a valid customer, there are two bank accounts: checking and savings. First, ask for the initial balances of the bank accounts; reject negative balances. Then ask for the transactions; options are deposit, withdrawal, and transfer. Then ask for the account; options are checking and savings. Then ask for the amount; reject transactions that overdraw an account. At the end, display the balances of both accounts (using printf) to two decimal places and with a leading dollar sign.