Direction: Provide solution for Problem Solving Phase: a) Program Overview , b.) Data Requirement, ; , c.) Algorithn Machine Problem No. 1 , An automobile is used for commuting purposes. Write a program that takes as input the distance of the commute, the automobile's fuel efficiency in kilometers per liter, and price of gasoline per liter and then outputs the cost of the gasoline for the commute.
Q: PROBLEM: Write a program that computes for the Electric Field and Electric Potential at a given…
A: PROGRAM EXPLANATION Include the header file. Define the main function. Create three variables to…
Q: Task #1 Informatics employees are paid at the overtime rate of one and a half times the base rate…
A: For TASK 1: We need to take input the name,length and the breadth of the room and then we need to…
Q: 3. The body surface area (BSA) in m? of a person can be calculated by the formula: BSA =…
A: Given : BSA:0.007184W0.425H0.75 here w is the mass in kg anf h is the height in cms. the input…
Q: Q2) Design project and write a code to solve the following equation
A: Start Input value of a Input value of b Calculate Z Print Z Stop
Q: PROBLEM: Write a program that computes for the Electric Field and Electric Potential at a given…
A: Your C++ program is given below as you required with an output.
Q: PROBLEM 1: Create a program that will display the nth numbers in the Fibonacci series. The length of…
A: According to the Bartleby guideline, the first question only get solved. The second question you can…
Q: Problem 2: This program will compute the volume of a cylinder. Write a function, area, that will…
A: As programming language is not mentioned we are providing answer in C++ language.…
Q: Problem #1: Write a program that reads from the user the name of a student, the grades of two…
A: Simple output, Your name: Ali your midters 1 grade: 70 your midterm 2 grade: 65 your final year…
Q: Complete the following program. An object floats in any fluid, if the density of the object is lower…
A: Sample Response: //C++ programming language, tested on CodeBlock IDE#include<iostream>using…
Q: Problem 3. Provide short answers to the following questions: a. Write an example of a valid…
A: In effect, an argument is valid if the truth of the premises logically guarantees the truth of the…
Q: Q: A Dam in Iraq is discharging water quantities daily as shown in the the manager of the dam…
A: We need to create a vector with given data and plot the required data .
Q: Problem Statement: Create a program that will solve for the given function below based on the…
A: C++ program for above : #include <iostream> using namespace std; int main() { float x;…
Q: Problem Statement The area under a curve can be estimated by breaking the x axis into increments,…
A: Following is the Matlab code to find the area of the above function: clc; close all; %Taking all…
Q: c++ program or code of Juan works on a field and for his work he receives 1/3 of the crop. If his…
A: #include<iostream>using namespace std; int main(){ float share_of_juan = 245; float part…
Q: 2. Create C program to calculate the volume of water in each cylirdrical tark as shown in figure…
A: Program Approach: Including header files for the standard I/O. Defining a main function. Declaring…
Q: Question 2 a) The registration information for programming seminar is as follows: Number of…
A: Read Name Read registrants Initialize charge to 0 If registrants>=10 Then charge=registrants*80…
Q: type python program with indentation for: Write a program to calculate the balance and minimum…
A: Actually, program is a executable software that runs on a computer.
Q: Problem 5, Learn by Example. Write one program that correctly solves all of the problem instances.…
A: - We need to solve the problem using 5 variables and print in the order shown. - The order in which…
Q: PROBLEM #2: Create a function which solves for the surface area and volume of a sphere. Get a radius…
A: Python Code for computing surface are of sphere is in step 2.
Q: Problem 1. Write a program to calculate the real roots of the quadratic equation. Note: use…
A: As per our company guidelines, we are supposed to answer only one question per post and kindly…
Q: Assignment #1 Compute the net take-home pay of the employee in AXB Company. The program accepts name…
A: The program is written in c
Q: 1. Write a parameter and return program that will require the user to enter a temperature in Celsius…
A:
Q: 3. Write definitions for these functions: sphereArea (radius) Returns the surface area of a sphere…
A: The volume of the sphere of radius r : 43πr3 The surface area of the sphere of radius r : 4πr2
Q: Problem 2 The Eco-Marathon is a competition in which participants build special vehicles to achieve…
A: Answer : CODE : clc; mass = input("Enter mass of ethanol [grams]:"); %calculation of density…
Q: Problem 5. Electric Bill: Write a program that will calculate an- show bills of the Manila Electric…
A: C code to calculate electricity consumed as per the above data .
Q: Q2) Design project and write a code to solve the following equation Z=
A: We need to design a project and write a Code to solve the equation: Z = a2 +b2 Algorithm: 1) START…
Q: PROBLEM: Write a program that computes for the Electric Field and Electric Potential at a given…
A: Your C++ program is given below as you required with an output. We are going to calculate the…
Q: Use the Design Recipe to define a function pulse_rate that has two parameters. The first is the…
A: Please find the answer below :
Q: The cost of renting a car is RM100.00 for the first day, RM70.00 per day for the next 3 days and…
A: In this question, User want to calculate charge with following condition: For day one or very first…
Q: Instructions: Read and analyze the problems and make a C++ program out of it. Assignment #1 Compute…
A: ///Program#include <iostream>using namespace std;int main() { int monthsalary=0; int…
Q: Problem 2 You are studying the temperature and pressure of the atmosphere at various altitudes and…
A: Required Matlab program is Given below
Q: Given a certain Physics problem create a function(projectilemotion_solver) that would take in the…
A: projectilemotion.py import math# function to calculate range on given v and thetadef Range(v,theta):…
Q: PROBLEM 2 (CONDITIONAL) Write a C program to input 3 sides of a triangle and check whether a…
A: Below is the code in C Language to input 3 sides of a triangle and check whether a triangle is…
Q: The Graduation Problem Many 4-year Universities are on the quarter-credit (rather than semester)…
A: Program to implement the following problem: string getStatus(double gpa,int credits, int…
Q: e of cube using constructor an
A: Code: #include<iostream>using namespace std; class cube{ public: double side; double…
Q: (c) Assuming function prototype is declared, identify and correct the errors for the following…
A: Here we are given a function definition. The function takes 2 integer parameters as input and…
Q: The cost of renting a car is RM100.00 for the first day, RM70.00 per day for the next 3 days and…
A: #include<stdio.h> int choice=1,day; float charge; int main(){ while(choice!=0){…
Q: Problem 2. An electricity board charges the following rates mentioned in the table for the use of…
A: As per the given question, we need to calculate the monthly bill of a user based on the selected…
Q: Consider the following incomplete code: def f(number): # missing function body print (f(5)) The…
A: 1) We have a function f which takes a argument number. This function is called in print function…
Q: The mass (mo) and half-life (dt) and elapsed time (t) of the radioactive element in grams will be…
A: Input : mass (mo) half-life (dt) elapsed time (t) of the radioactive element in grams Output :…
Q: Using functions, write and submit the source codes that will solve the given problems. PROBLEM 1:…
A: code: #include<iostream>using namespace std; int fiboseries(int num);int fiboseries(int num){…
Q: C++ programming problem: During the tax season, every Friday, the J&J accounting firm provides…
A: program:- #include <iostream>using namespace std;int get_billing_amount(){ int…
Q: LAB: Count characters - methods Write a program whose input is a character and a string, and whose…
A: import java.util.*; public class Main { public static int countCharacters(char userChar, String…
Q: For this c++ homework fill in the code Use functions and function declarations (headers) to…
A: Program: #include <iostream> #include <cmath> #include <iomanip> using namespace…
Q: PROBLEM: write a program that computes for the Electric Field and Electric Potential at a given…
A: C++ calculate the Electric Field and Electric Potential at different point of the spherical surface.
Q: 1. Problem: write a complete program to calculate the total price of an item by asking the user to…
A: #include <iostream> using namespace std; int main(){ double price; int quantity;…
need help with these
Step by step
Solved in 3 steps with 2 images
- Task #1 Informatics employees are paid at the overtime rate of one and a half times the base rate for hours worked above 40 hours in a week. Informatics desires a payroll program that reads, for every employee, the base rate and the number of hours worked and prints their weekly wages. It should also print the total of weekly wages paid by informatics. Using pseudocode, develop and algorithm for this problem.Problem 3: COMPUTER FUNDAMENTALS AND PROGRAMMING 2In a triangle, the sum of the 1st and 2nd side must always be greater than the 3rd side. Create a program that will input 3 positive integers representing the 3 sides of the triangle and determine whether they form a valid triangle. If they do, compute, and print the perimeter of the triangle, otherwise, display the message, invalid triangle. Perimeter = 1st side + 2bd side + 3rd sidePROBLEM 21. [TIME ALLOWED = 5 MINUTES] This is about the truth value of the statement: “There exist positive integers x, y, and z such that x3 + y3 = z2.” Select one of the following: (a) x = 1, y = 2, z = 3. (b) x = 2, y = 2, z = 4. (c) x = 3, y = 4, z = 5. (d) (a), but not (b). (e) Both (a) and (b), but not (c).
- An over due charges will be imposed to a book borrower based on the number ofoverdue days. The first 7 days, 10 cents per day will be charged and 20 centsper day for the following days. Program A shows a solution to calculate anddisplay a total amount of an overdue charges that a borrower has to pay for abook. Analyze Program A to answer questions 2a, 2b and 2c. # include<iostream.h>void main(){float charge;cout <<"please insert the number of overduedays";cin>>number_day;if(number_day>0&&<=7)charge = number_day*.10;charge = number_day-7*0.2 + 7*0.1;cout<<”Charge for overdue”<<number_day<<"day"<<charge;} Program A a. List all the syntax errors in the Program A.b. Identify the logic errors and state the effects to the output.c. Write the correct statements for the above logic and syntax errors.Problem 2: PLEASE USE PYTHON to solve all parts to this problem Program Specifications. Write a program to calculate the cost of hosting three pizza parties on Friday, Saturday and Sunday. Read from input the number of people attending, the average number of slices per person and the cost of one pizza. Dollar values are output with two decimals. For example, print(f"Cost: ${cost:.2f}"). Note: This program is designed for incremental development. Complete each step, take snapshots of the results, and include them in the final document you submit for grading. Template: import math # type your code adding plenty of comments for better understanding of the steps Step 1 . Read from input the number of people (int), average slices per person (float) and cost of one pizza (float). Calculate the number of whole pizzas needed (8 slices per pizza). There will likely be leftovers for breakfast. Hint: Use the ceil() function from the math library to round up to the…Question 4 Write a C++ program that evaluates Ly=b and then Ux=y. L and U are the upper and lower triangular matrices of a square matrix A. b is a set of randomly generated numbers. Solve the equations to get the solution x. Full explain this question and text typing work only thanks
- C++ Programming Exercise: A real estate office handles, say, 50 apartment units. When the rent is, say, $600 per month, all the units are occupied. However, for each, say, $40 increase in rent, one unit becomes vacant. Moreover, each occupied unit requires an average of $27 per month for maintenance. How many units should be rented to maximize the profit? Write a program that prompts the user to enter: a. The total number of of units. b. The rent to occupy all the units. c. The increase in rent that results in a vacant unit. d. Amount to maintain a rented unit. The program then outputs the number of units to be rented to maximize the profit.Problem 5: PLEASE USE PYTHON to solve all parts to this problem Program Specifications Write a program to calculate a course grade given points for homework, quizzes, midterm exam, and final exam. Grades are calculated differently for undergrads, grads and distance learners. Template: HOMEWORK_MAX = 800.0; QUIZZES_MAX = 400.0; MIDTERM_MAX = 150.0; FINAL_MAX = 200.0; # type your code adding plenty of comments for a better understanding of the steps Step 1. Read from input student status (str). If input is not one of "UG" (undergrad), "G" (grad), or "DL" (distance learner), print an error message and exit the program. Otherwise read from input floats for homework points, quiz points, midterm exam score, and final exam score. Calculate each category's average using maximum points for homework (800), quizzes (400), midterm exam (150), and final exam (200). Output category averages as a percentage using print(f"Homework: {homework:2.1f}%"). Ex: If the input is: UG 600.0…c++ programming b) Given x and y are int variables and z is a double variable. The initial value for x, y, andz are 4, 6, and 2.5. Show the working steps and result for the following expression:(i) x / (3 + y) + 11 % y(ii) x - y++ + z
- python help Write function pay() that takes as input an hourly wage and the number of hours an employee worked in the last week. The function should compute and return the employee’s pay. Overtime work should be paid in this way: Any hours beyond 40 but less than or equal 60 should be paid at 1.5 times the regular hourly wage. Any hours beyond 60 should be paid at 2 times the regular hourly wage. Use if-elif-else to solve and pay attend to the order. Remember to include the docstring and comments. A sample of running the function is shown below. >>> pay(10, 35) 350 >>> pay(10, 45) 475 >>> pay(10, 61) 720Please use C Program In order to discourage excess electric consumption, an electrical company charges its customers a lower rate of P75 for the first 250 kilowatt-hours and a higher rate of P8.5 for each additional kilowatt-hour. In addition, a 10% surtax is added to the final bill. Write a program that calculates the electrical bill given the number of kilowatt-hours consumed as input. At the end, print the number of kilowatt-hours consumed and the computed bill.(General math) The perimeter, approximate surface area, and approximate volume of an in-ground pool are given by the following formulas: perimeter=2( length+width)volume=lengthwidthaveragedepthundergroundsurfacearea=2( length+width)averagedepth+lengthwidth Using these formulas as a basis, write a C++ program that accepts the length, width, and average depth measurements, and then calculates the pool’s perimeter, volume, and underground surface area. In writing your program, make these two calculations immediately after entering the input data:lengthwidthandlength+width. The results of these two calculations should be used as needed in the assignment statements for determining the perimeter, volume, and underground surface area without recalculating them for each equation. Verify your program’s results by doing a hand calculation, using the following test data :length=25feet,width=15feet,andaveragedepth=5.5feet. After verifying that your program is working, use it to complete the following chart: