Write a program that will compute the students average •The user will input the following: Name Math Science English •If the average is equal and above 75, it will display “Congratulations. You passed the semester” otherwise “You failed the semester.” •However, if his average is equal and above 75 but fail to pass one or two subjects, it will display “Congratulations. You passed the semester. But you need to re-enroll (subject name) subject. “
Q: Write the algorithm and draw the flow chart for a program that calculates and displays a person’s…
A: The solution is as follows: Here is the pseudo code
Q: 2.27 LAB: Driving costs Driving is expensive. Write a program with a car's miles/gallon and gas…
A: Given, car's miles per gallon = 20 so car's 1 mile per gallon = 1 / 20 and price of gas per gallon…
Q: 21. GeeBees Clothiers is having a sale. The store manager wants a program that allows a salesclerk…
A: Corrected algorithm: The algorithm calculates the discount by multiplying the original price by…
Q: Activity #2: Taking limits to compute derivatives Write a program named Lab5a_Act2.py to compute a…
A: Actually. Python is a easiest programming language. It is a dynamically typed programming language.
Q: 1 //This program will ask for the user's grades in Math, English, and Science. It will then display…
A: ISSUES IN THE ORIGINAL CODE: In line 1, the # symbol is missing which is mandatory for including…
Q: For a C++ program
A: Programming instructions: Include necessary header files to compute equations. Create a main…
Q: 6. Positions on a chess board are identified by a letter and a number. The letter identifies the…
A: The program is implemented in C++ with object oriented approach. In the program we have first taken…
Q: Świtch Statement Problem 5. Electric Bill: Write a program that will calculate and show bills of the…
A: The problem is based on the basics of conditional statements in C programming language.
Q: ACTIVITY 1.3: Age Equivalent Write an algorithm and draw a flowchart that reads the age of a…
A: ALGORITHM: - Start;Declare variable age;input age of person;if(age <0) { Print "error, age is…
Q: 5.9 (Baggage Counter Charges) A baggage counter charges a $0.50 minimum fee to deposit a bag for up…
A: #include<stdio.h> float determineCharge(float hours){ //function to calculate charge per…
Q: Problem #1: Car experts recommend changing your air filter as often as every 6000 miles if the oil's…
A: #include<stdio.h> int main(){ char category; //variable to store oil category int miles;…
Q: "### Exercise 1 ###\n", "\n", "The table presented below gives a final grade based on the amount of…
A: Algorithm: Algorithm for given problem is: Start print("Enter total points at end of the course:")…
Q: An anagram is a word or a phrase formed by rearranging the letters of another phrase such as "ITEM"…
A: As per the given question, we are given two phrases and we have to check if they are anagrams of…
Q: The payroll clerk at Nosaki Company wants a program that calculates and displays an employee’s gross…
A: IPO is short for Input Processing and Output, it is basically a chart that shows the input to the…
Q: 4.16 LAB: Warm up: Drawing a right triangle This program will output a right triangle based on user…
A: Required: i need help with this code and can you do it in python
Q: please help me solve this problem the language is C++
A: Program Instructions:Ask the user the name of each friend one by one.Calculate the 20% tip, total…
Q: Is there a way to condense my statements? I'm also getting a "bad operand type" error. I haven't…
A: The error you were getting was due to improper arguments in the print statements. The rectified Java…
Q: Write a Program to enter the numbers till the user wants and at the end it should display the count…
A: Code :
Q: 5. (Algebra: solve 2 x 2 linear equations) You can use Cramer's rule to solve the following 2 X 2…
A: Step-1: StartStep-2: Declare variables a, b, c, d, e, f, x, y, valueStep-3: Take input from user a,…
Q: 2.12 LAB: Driving costs Driving is expensive. Write a program with a car's gas mileage…
A: LAB: Driving costs - functions Driving is expensive. Write a program with a car's miles/gallon and…
Q: Rolling Two Dice Write a program that simulates the rolling of two dice. The program should use rand…
A: Note: Programming language is missing in the question. So we will answer this program in C++…
Q: Problem #1: Car experts recommend changing your air filter as often as every 6000 miles if the oil's…
A: Note: As per our guidelines we are supposed to answer only one question so post then next problem as…
Q: QUESTION 5 Write a program to calculate how much each individual must pay during a group lunch…
A: Question 5: Programming Language Used: C Language For the given scenario, C code is as follows:…
Q: Problem #1: Car experts recommend changing your air filter as often as every 6000 miles if the oil's…
A: PROGRAM CODE: import java.util.*; // import utility package of javapublic class…
Q: Activity #2: Write a program that computes parking fees for a garage with the fee structure given in…
A: Objective: This program reads the number of hours parked for vehicles and computes the total charge.…
Q: code for this in C: In college, a student may get a grade of 1.0 (as the highest) to 5.0(lowest).…
A: PROGRAM CODE: The challenge is how to use the supplied formula to highlight the final grade, and…
Q: Senior salesperson and junior salesperson are paid per a week. Write a program that accepts as input…
A: The iostream is the header needed as the fundamental I/o streaming item. h ,a file of similar type…
Q: Q6) Write a program that calculates the factorial of a positive integer, factorial of zero is one.…
A: As the language is not specified answer written in c++
Q: Write down a program to accept user’s First and Last Name. Print full name of the user. Print the…
A: As per rule, I am entitled to answer the first question only Program Approach:- 1. Include header…
Q: An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance…
A: Program Explanation – Import the essential java libraries. Declare the class named as Main.…
Q: 5. (Algebra: solve 2 x 2 linear equations) You can use Cramer's rule to solve the following 2 X 2…
A: Input the numbers from the user, split the number and convert them into float. unzip the list item…
Q: 5.1.1 Problem description Write pseudo-code of program that finds "Prime Numbers" in the given…
A: Find Your Pseudo Code Below
Q: Exercise 6: Two points in a plane are specified using the coordinates (x1, y1) and (x2, y2). Write a…
A: Since it is unclear which question you want, my code below is answer to both questions 6 and 7.
Q: main function. b. Modify your program so that the function is called for as many times as needed for…
A: CODE:C++ Program #include<iostream>using namespace std;double total_cost(double price);int…
Q: Exercise 4: Write a program that reads two pieces of information: the hourly wages and the number of…
A: Problem:- we need to calculate net salary of an employee based on hourly pay wage and working hour…
Q: C++ OOP Write a program that prompts the user to input a length expressed in centimeters. The…
A: Program plan: Prompt for the centimeter value Converts the centimeter length to inch lengthInch…
Q: QUESTION 2 Create a program that will assist a user in determining the following criteria of a…
A: To write C++ program to find square, square root and check whether the given number is even or odd.
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: Activity #2: Taking limits to compute derivatives Write a program named Lab5a_Act2.py to compute a…
A: Since you are asking multiple questions, we are answering first question for you. If you want…
Q: Problem #1: [35 pts] Write a program to calculate the estimated engine horsepower of a car based on…
A: Ans: Code: import java.util.*;import java.lang.Math; public class Main{ public static void…
Q: 6. (Display the first days of each month) Write a program that prompts the user to enter the year…
A: import java.util.Scanner;public class Exercise7 { public static void main(String[] strings) {…
Q: Exercise II Write a program that finds the positive integer solutions of the following equation ax³…
A: Sample Response: //C++ program to find teh solution of a cubic equation by testing each integer from…
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: Suppose that the tuition for a university is $10,000 this year and increases 5% every year. Write a…
A: In the computer programming, the concepts of the language that can be organized and managed as the…
Q: Example-6 A number of rivers (N), each river has three (pH) values. Write a program to read the (pH)…
A: The ask is to write a program doing the following: - Take user input for number of rivers - For each…
Q: Use Language: C Write a program that accepts a number and determines whether the number is…
A: Algorithm: if condition then something if; elseif condition then…
Q: Activity 20 Electric Bill: Using Switch Statement, write a program that will calculate and show…
A: Solution :: #include <iostream> using namespace std; int main(void){ // Your code here!…
Q: a) Print the even numbers between 3 and 43. b) Print every third letter starting with 'B'. c) Print…
A: #include <iostream>using namespace std; void a() { int i; cout << "a() ->" <<…
Q: Lab #05 Exercise Write a program to enter 2 out of 3 angles in a triangle, in degrees. Your program…
A: Please give positive ratings for my efforts. Thanks. PROGRAM a = float(input("Enter the first…
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:
Problem No.1
•Write a
•The user will input the following:
Name
Math
Science
English
•If the average is equal and above 75, it will display “Congratulations. You passed the semester” otherwise “You failed the semester.”
•However, if his average is equal and above 75 but fail to pass one or two subjects, it will display “Congratulations. You passed the semester. But you need to re-enroll (subject name) subject. “
Problem 2
Write a program that will check the employees years in service and office.
•The user will input number for years and in service and the following offices(IT, ACCT, HR)•Check the following conditions:
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 1 images
- Create a node server with the following requirements: Use the dotenv package to manage your development environment variables. PORT should be 3000 HOST should be localhost Endpoints /dotted Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: word1 and word2. The endpoint will take the two words and create a string that is the two words separated by enough “.” characters to make the length of the string 30. For example if word1 is “turtle” and word2 is “153” the output should be: turtle.....................153 The response body should be the string wrapped in a <pre> tag. /fizzBuzz Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: start and end. The endpoint will iterate from start to end and for each number it will: Show “Fizz” if the number is divisible by 3. Show “Buzz” if the number is…Create a node server with the following requirements: Use the dotenv package to manage your development environment variables. PORT should be 3000 HOST should be localhost Endpoints /dotted Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: word1 and word2. The endpoint will take the two words and create a string that is the two words separated by enough “.” characters to make the length of the string 30. For example if word1 is “turtle” and word2 is “153” the output should be: turtle.....................153 The response body should be the string wrapped in a <pre> tag. /fizzBuzz Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: start and end. The endpoint will iterate from start to end and for each number it will: Show “Fizz” if the number is divisible by 3. Show “Buzz” if the number is…Create a node server with the following requirements: Use the dotenv package to manage your development environment variables. PORT should be 3000 HOST should be localhost Endpoints /dotted Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: word1 and word2. The endpoint will take the two words and create a string that is the two words separated by enough “.” characters to make the length of the string 30. For example if word1 is “turtle” and word2 is “153” the output should be: turtle.....................153 The response body should be the string wrapped in a <pre> tag. /fizzBuzz Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: start and end. The endpoint will iterate from start to end and for each number it will: Show “Fizz” if the number is divisible by 3. Show “Buzz” if the number is…
- """return the haversine distance between the two locations.The location should be a tuple of (latitude, longitude)https://en.wikipedia.org/wiki/Haversine_formulaIf you use code from a website as the basis for this function, besure to document that website here::param location1::param location2::return: haversine distance between two locations, measured in miles.""" FILES LOOK LIKE THISID,City,State,Latitude,LongitudeA45419E,Plattsburgh,NY,44.704021,-73.471148A19312D,Aiken,SC,33.554433,-81.69588A90172S,Tuscaloosa,AL,33.170238,-87.616169A19394D,Alexandria,VA,38.819853,-77.059645A27218D,Pittsburgh,PA,40.47441,-79.950968A68626D,Meadville,PA,41.611599,-80.114891A17494D,Allentown,PA,40.602658,-75.469236A86034S,Tonawanda,NY,42.99704,-78.878659A45142D,Asheville,NC,35.602711,-82.567281A38298S,Atlanta,GA,33.844371,-84.47405A14497Y,Roswell,GA,34.055198,-84.370475A25954D,Austin,TX,30.326374,-97.771258B46374X,Fairhope,AL,30.480713,-87.861306B52199S,Cedar…4.29 LAB: Quote web API (XMLHttpRequest) In this lab, you will use a web API to fetch and display quotes on a selected topic, as shown below. Quote web API A quote web API returns a collection of randomly selected quotes related to a given topic. The API supports two query string parameters: topic - Specifies the requested topic. Valid topics are love, motivational, wisdom, and humor. count - Specifies the number of quotes requested and must be a number from 1 to 5. Ex: The API request: https://wp.zybooks.com/quotes.php?topic=love&count=3 returns 3 quotes about love, formatted in JSON: [ { "quote": "If I know what love is, it is because of you.", "source": "Hermann Hesse" }, { "quote": "The opposite of love is not hate, it's indifference.", "source": "Elie Wiesel" }, { "quote": "Suffering passes, while love is eternal.", "source": "Laura Ingalls Wilder" } ] If the topic is not given or not recognized, the API returns an error message. Ex: The request for a "success" quote:…Examine the following code. function getData() { var url = "ajaxdata/citStudents.txt"; var request = new XMLHttpRequest(); request.open("GET", url); request.onreadystatechange = function() { if (request.readyState == 4 && request.status == 200) { alert(request.responseText); } }; request.send(null); } What does it mean if the condition (request.readyState == 4 && request.status == 200) evaluates as true? it means there were no http errors and that the data has been returned to the browser. it means there were was an HTTP error and that the data will not be returned to the browser. it means the request has been sent and data will be back in 200 milliseconds or less.
- Setup Branch name assignment1 Directory assignment1 Package name assignment1 Instructions Create a node server with the following requirements: Use the dotenv package to manage your development environment variables. PORT should be 3000 HOST should be localhost Endpoints /dotted Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: word1 and word2. The endpoint will take the two words and create a string that is the two words separated by enough “.” characters to make the length of the string 30. For example if word1 is “turtle” and word2 is “153” the output should be: turtle.....................153 The response body should be the string wrapped in a <pre> tag. /fizzBuzz Only GET requests are allowed. This endpoint will respond with the HTML content type. This endpoint will take two required query parameters: start and end. The endpoint will iterate from start to end and for each…omplete this javascript file according to the individual instructionsgiven in the comments. *** DO NOT CHANGE any of the code that you are not instructed to. */ ////////////////////////// NOTE: Use the API endpoints available at// https://jsonplaceholder.typicode.com/// to get the data required in these exercises.// HINT: Read the documented Resources and Routes.// Also the guide:// https://jsonplaceholder.typicode.com/guide//////////////////////// Create a function named "getUser".// This function needs to accept a "userID"// parameter.// Use Fetch with Async/Await to request// the data for the requested user.// The function should return JSON data.Descriptionnslookup is a common tool used for querying name servers. A very nice articledescribing its use on Windows machines may be found on a Microsoft Support site. Using nslookup (or if you'd prefer, the commands dig and host will do the job ifthey're installed on your computer), please answer the following questions. For eachquestion, please indicate the command typed into nslookup that you used in orderto answer the question. Look up a web hosting service.o What is the name of the company?o What are its charges per month for storage and bandwidth?o What platform (Windows, Linux, etc)?o Do they do domain name registrations?o If they handle DNS, what are the names and IP addresses of its DNSs?
- Code a JavaScript statement that sets the public subfolder as the web server's default folder when the endpoint path is the root path. Code a Node/Express web server that1. Accepts and processes request messages (method="GET") submitted from a web browser by creating endpoints2. Generates and sends response messages back to browser for display.Complete this javascript file according to the individual instructions given in the comments. *** DO NOT CHANGE any of the code that you are not instructed to. */ //////////////////////// // NOTE: Use the API endpoints available at // https://jsonplaceholder.typicode.com/ // to get the data required in these exercises. // HINT: Read the documented Resources and Routes. // Also the guide: // https://jsonplaceholder.typicode.com/guide/ /////////////////////// // 1) Create a function named "getAllPosts". // Use Fetch with Async/Await to request // all the posts. The function should // return all the posts as JSON data. // 2) Create a function named "getAllUsers". // Use Fetch with Async/Await to request // all the posts. The function should // return all the posts as JSON data. // 3) Create a function named "getComments". // This function needs to accept a "postID" // parameter. // Use Fetch with Async/Await to request // all the comments for the postID that // is passed in as a…Please use IBM Business Computing to answer the folloing question 1 – Create a new Library called VnnLIB1 (NN is your student login id number) using the command CRTLIB 2 – Create a new Jobq VnnJOBQ1 and Outq VnnOUTQ1 in the Library VnnLIB1 using the command crtjobq and crtoutq 3 – Grant *PUBLIC *USE Authority to your VnnLIB1 library using the command wrkobj VnnLIB1 and then option 2 4 – Submit 3 jobs using sbmjob in your VnnJOBQ1, these jobs will not run, since they are not attached to any sub-system. Check it out by using wrkjobq command 5 – Change the 3 jobs submitted in step #4 to run in sub-system QINTER and change the out to VnnOUTQ1. These jobs will run, and the results will be in VnnOUTQ1. Check it out by using wrkoutq command 6 – Create a new Source File called VnnSRC in your library VnnLIB1 using command crtsrcpf 7 - Create a new Save File called VnnSAVF in your library VnnLIB1 using command crtsavf 8 – Run DSPJOBLOG command and save the output in your spool file 9 – Write the…