Problem 4: The list price of a scientific calculator is 100 dollars. If you get a price discount of 15 % and pay 5 % for tax, what is the actual cost of your calculator?. Write a program that will compute the tax and actual cost of the calculator.
Q: Write a complete C program for the following question Write C program to find the result of X in the…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: Your completed program should: 1. Prompt the user and read in the number of a team playing the…
A: Your completed program should: 1. Prompt the user and read in the number of a team playing the…
Q: Write a program for grade computation. The final grade should be computed using the formula:…
A: C program: C is a general purpose programming language developed by Dennis Ritchie in 1972. C is a…
Q: Driving is expensive. Write a program with a car's miles/gallon and gas dollars/gallon (both…
A: Required: Required code with comments for explanation and screenshot of both code and output has…
Q: Write the c program that displays the water invoice price on the screen as follows, according to the…
A: Below is the required code in C language. Program Approach: Include necessary header files to get…
Q: Read and understand the following problem: 1. Write a program that accepts from the user an…
A: Suppose the user entered 100 Peso. Given: 1 HK dollar = Php 6.51 ⇒ 1 Php = 1/6.51 HK dollar…
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =…
A: Given: The program is written in C language to find area and volume of sphere.
Q: program with a car's miles/gallon and gas dollars/gallon (both doubles) as input, and output the gas…
A: Introduction of Program: In this C++ program, the User enters the car consume how many miles in 1…
Q: Page 104 - #9 Write a program that takes the length and width of a rectangular yard and the length…
A: Solution: The code for above question is mentioned below. In this problem we take the input from…
Q: Display basic salary, bonus and net salary
A: EXPLANATION--> Firstly input two variable named with salary and grade If grade is greater then…
Q: Using “c” above, write a program that requests two fertilizer name and their respective yields. Your…
A: - The question is to input two fertiliser and their yield and print the fertiliser with biggest…
Q: The topic is Secant method from Numerical Methods. Task: Create a program that uses C language that…
A: SUMMARY: - Hence, we discussed all the points.
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =…
A: Given: The program is written in C language to find area and volume of sphere.
Q: Program 4: You found an exciting summer job for five weeks. It pays, say, $15.50 per hour. Suppose…
A: The program is completed with the c++ programming language. In this code, I explained everything…
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: 39. Write a program for the following problem. An instructor needs a program that accepts a student…
A: Given : semester average grade 90 -100 A 80-89 B 70-79…
Q: Direction: Provide solution for Problem Solving Phase: d) Flowehart e.) Source Code in Ć Machine…
A: Algorithm: Take the distance, efficiency, and price of gas from user. Calculate the cost of commute…
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: Problem #1: You are asked to write a program that calculates your electric bill. You are to input…
A: import java.util.Scanner;public class Main{ public static void main(String[] args) { //create…
Q: C program of When the direction of the sun makes an angle of 35.2° with the horizontal, an oil…
A: Program code: #include<stdio.h>#include<math.h> int main(){ double deg,result;…
Q: Example-3: Write a program to calculate the Area and volume for a sphere. Sol. -The area of sphere =…
A: Given: To write a program to calculate the area and volume for a sphere. The program is written in C…
Q: Problem 4. Write a program that will accept the tuition fee and compute the total tuition fee based…
A: The Answer is in Below steps
Q: Write a program that recommends the number of calories a person should eat each day. Calories are…
A: Program to find the calories required for a person in a day. Recommend the required calories based…
Q: You are required to write a program that compute a workers gross pay, the deductions and his/her net…
A: DONE IN C++ PROGRAMM
Q: 2. Pure Gems Store sells different varieties of gems to its customers. Emerald, Ivory, Jasper, Ruby,…
A: Python program to solve the given problem is below.
Q: Write a program that reads the marks of a student in the test (te), midterm (mid), assignment…
A: Code: #include<stdio.h> int main(){ int tm,mid,assig,fe,pm; printf("Enter…
Q: Task: Write the full program that has the following main function. Your program should ask the user…
A: Given: Program to find area or perimeter of the rectangle.
Q: Write the c program that displays the water invoice price on the screen as follows, according to the…
A: Here is the C program: // Include necessary header files#include <stdio.h>// Define a main…
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: A student took four quizzes in a term and would like to compute their average. He also would like to…
A: 1. Input marks of 4 quiz 2. Add the marks of 4 quiz to get the total(tot) 3. Divide the add value…
Q: The following equations estimate the calories burned when exercising (source): Women: Calories = (…
A: Step1 : inputs age (in years), weight (in pounds), heart rate (in beats per minute), and time…
Q: Task 11 Write a Python program that takes a number from the user and prints its digits from left to…
A: The programming methodology for the program is given by: Input the number in num variable using…
Q: Write a program in which child take the input from user and parent is required to print that input?
A: #include <stdio.h>#include <stdlib.h>#include <pthread.h>#include…
Q: Problem 4. Write a program that will accept the tuition fee and compute the total tuition fee based…
A: Accept tution fee as integer and then find the total amount and the convert to integer and display…
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: Create a program that uses C language that solves the function below: f(x) = 3x = ex
A: C code for ex to show the value equal to f(x) #include <stdio.h> float exponential(int a,…
Q: ach occupied unit requires an average of $27 per month for maintenance. How many units should be…
A: The program of output in the number of units is given as,
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: The program should Compute an investment report based on the paycheck amount from program #1 by…
A: PROGRAM INTRODUCTION: Take the total number of hours worked from the user. Take dollars paid per…
Q: A contractor orders, say, 30 cubic yards of premixed concrete to construct a patio that is to be,…
A: Find the required code given as below and sample output :
Q: Suppose you have an investment plan where you invest a certain fixed amount every year. Modify…
A:
Q: Problem 1: Write a program that will calculate the discount and sale price of a dress marked as $40.…
A: As, per bartelby terms we have to solve 3 questions if we have subpart question . so, please post…
Q: Problem #2: [50 pts] Write a program that calculates the net salary after tax deduction according to…
A: Code and output is given in step2
Q: Task 12 Write a Python program which takes a number and prints the digits from the unit place, then…
A: Program description: n is the user input integer variable that stores the value of the number.…
Q: 2. Construct a program where you deciare and initialize a constant variable, now try to reassign…
A: EXPLANATION: The constant variables are basically those variables which can not be modified at the…
Q: 3) Write a program to find a. Surface area (A= 2 r n) b. volume(v=r ² a h) of a cylinder using…
A: Algorithm: Step-1: Start Step-2: Take input radius and height from the user. Step-3: Calling…
Q: Python programming Problem 2. Your friend owns a restuarant. He wants to calculate the tip (15%)…
A: meal_costs = int(input("Enter the meal costs: ")) # asking user to enter the meal costs subtotal…
Q: Problem #1: You are asked to write a program that calculates your electric bill. You are to input…
A: PROGRAM CODE: import java.util.*;public class Main{public static void main (String[] args){Scanner…
Answer the number 5 only. Thank you
Step by step
Solved in 2 steps with 2 images
- (Numerical) a. Write a set of detailed, step-by-step instructions in English to calculate the fewest number of dollar bills needed to pay a bill of amount TOTAL. For example, if TOTAL is $97, the bills would consist of one $50 bill, two $20 bills, one $5 bill, and two $1 bills. (For this exercise, assume that only $100, $50, $20, $10, $5, and $1 bills are available.) b. Repeat Exercise 6a, but assume the bill is to be paid only in $1 bills.A set of instructions thats executed to solve a specific problem is called a(n) __________.Instruction: Rank the given pseudocode (see the attached photo) according to its order of action. In the program flow, the input and checking sequence should be in the following order: number of people checked in, stay duration, meal charges. Furthermore, checking for the number of people should be in increasing order. Pls be guided in the given problem. Problem: Problem: Write a pseudocode to compute for the bill: An inn charges for room use (per night) at PhP 500 per one person, PhP 750 for two people, and PhP 1500 for at least three people. Meal charges, separately computed and to be prepared by the hotel management, will be added to the total bill.
- Write a program calculating the area of a triangle with the length of the three sides as a, b, c, given by: where s is the semi-perimeter of the triangle, The perimeter of the triangle is given by P = a+b+c. Note: Use #include <math.h> preprocessor directive use the sqrt() function.2) A _____is a sequence of instructions with a name. variable argument parameter functionFollowing is a problem statement. Which of the below is the correct trace table for the problem statement? Peter bought 18 cupcakes for his sons birthday, they cost R4,50 each. Write a program that will accept the input from the user and then calculate the amount due by multiplying the number of cupcakes by the price and then adding 14% VAT to the amount. Display the final amount he owes on the screen. Select one: a. Instruction quantity price amount vat finalAmount Output display Provide the quantity bought enter 18 display Provide the price of 1 item enter 4.50 calculate 81 11.34 92.34 display The final amount due is R92.34 b. Instruction quantity price amount vat finalAmount Output enter 18 enter 4.50 calculate 81…
- PLEASE CODE IN PYTHON Problem Description An anagram is a word or a phrase formed by rearranging the letters of another phrase such as “ITEM” and “TIME”. Anagrams may be several words long such as “CS AT WATERLOO” and “COOL AS WET ART”. Note that two phrases may be anagrams of each other even if each phrase has a different number of words (as in the previous example). Write a program to determine if two phrases are anagrams of each other. Input Specifications The input for the program will come from an input file in.dat, in.dat will have two lines of data, line (1) will have the first phrase and the line(2) will have the second phrase. You may assume that the input only contains upper case letters and spaces. Output Specifications The program will print out one of two statements: ”Is an anagram.” or, ”Is not an anagram.” All output will be to the screen. Sample Input CS AT WATERLOO COOL AS WET ART Output for Sample Input Is an anagram.Problem: Write a pseudocode to compute for the bill: An inn charges for room use (per night) at PhP 500 per one person, PhP 750 for two people, and PhP 1500 for at least three people. Meal charges, separately computed and to be prepared by the hotel management, will be added to the total bill. Instruction: Rank the given pseudocode (see the attached photo) according to its order of action. In the program flow, the input and checking sequence should be in the following order: number of people checked in, stay duration, meal charges. Furthermore, checking for the number of people should be in increasing order.Use Python - Rotations Instruction: Create the following function and call it to the main function. rotate point(point, pivot, angle) It rotates a point (two-float tuple) about a pivot (two-float tuple) by a given angle of rotation (float, degrees). It returns the floating-point coordinates of the rotated point. Notes: Remember to convert the angle in degrees to radians within the function. You are only allowed to use cos, sin, and pi from the math library. Examples of Output (with varying angles): Given: a = rotate_point((100, 100), (100, 80), 0)Output:(100, 80) Given: a = rotate_point((100, 100), (100, 80), 90)Output:(120, 100) Given: a = rotate_point((100, 100), (100, 80), 180)Output:(100, 120)
- Instructions: Analyze the simple program below that utilize jump instructions. Fill the blanks with the correct comments that would describe the process of the corresponding line of code. Then, answer the following questions.Write the Flowchart and Python code for the following programming problem based on the provided pseudocode. Write a program that will allow a teacher to calculate the average test score for a certain number of students. The teacher can enter the number of students who took the test, and then the score for each student. Your program will then calculate the average score and print out the results. Your program must use the appropriate loop, modules, and run multiple times for different sets of test scores. Your sample output might look as follows: How many students took the test: 9 Enter their score: 98 Enter their score: 78 Enter their score: 99 Enter their score: 92 Enter their score: 87 Enter their score: 100 Enter their score: 88 Enter their score: 81 Enter their score: 79 The average test score is 89 Do you want to end program? (Enter no to process a new set of scores): yes The Pseudocode The Flowchart PASTE FLOWCHART HERE The Python Code…Write the Flowchart and Python code for the following programming problem based on the provided pseudocode. Write a program that will allow a teacher to calculate the average test score for a certain number of students. The teacher can enter the number of students who took the test, and then the score for each student. Your program will then calculate the average score and print out the results. Your program must use the appropriate loop, modules, and run multiple times for different sets of test scores. Your sample output might look as follows: How many students took the test: 9 Enter their score: 98 Enter their score: 78 Enter their score: 99 Enter their score: 92 Enter their score: 87 Enter their score: 100 Enter their score: 88 Enter their score: 81 Enter their score: 79 The average test score is 89 Do you want to end program? (Enter no to process a new set of scores): yes The Pseudocode Module main() //Declare local variables Call declareVariables (endProgram, totalScores,…