
Database System Concepts
7th Edition
ISBN: 9780078022159
Author: Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher: McGraw-Hill Education
expand_more
expand_more
format_list_bulleted
Question
Write a PHP program that calculates your GPA.
Declare 3 variables for 3 different courses, and assign values to them.
Calculate the GPA and display it on the screen
Expert Solution

This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
This is a popular solution
Trending nowThis is a popular solution!
Step by stepSolved in 4 steps with 2 images

Knowledge Booster
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.Similar questions
- TotalPayAA.java Write a program that will calculate an employee’s total pay for a week (hourly pay + commission). Your program should ask the user how many hours they work and then their total sales amount. Hourly Wage - Their hourly wage is $11.50 for the first 40 hours and then time-and-a-half ($11.50 * 1.5) for anything over 40 hours. Commission - Commission is a small percentage of total sales that the employee earns. Total Pay – Total hourly wages + commission Commission for sales is shown: Sales Commission $0.00 - $99.99 5% of total sales $100.00-$299.99 10% of total sales $300.00+ 15% of total sales Make sure you print back to the user their total pay for the week. Money values should be formatted appropriately and your output should be descriptive as in the example. Test values: 10 hours + $10 sales =…arrow_forwardPYTHON PROGRAMMING Create a program that will convert a distance taken from the user in kilometers to the following conversion types: Statute mile (SM), Nautical mile (NM) and a Furlong. The conversion between the units are as follows: 1KM = 0.54NM, 1NM = 1.151 SM and 1SM = 8 furlongs The program will read one data value at a time and then convert the value to all three units Example of demo run: Enter linear distance in kilometers (km): 2.5 The distance in NM is: 1.35 The distance in SM is: 1.55385 The distance in Furlong is: 12.4308 End of linear converter program.arrow_forwardWrite a program in Java that would ask the clerk to enter the total amount of the customer’s order. The program will then calculate a seven percent (7%) sales tax. Calculate commission based on the following: order amount id="mce_marker" - $200 commission is 2%, order amount $201 - $400 commission is 3%, order amount $401 - $600 commission is 4%, order amount > $600 commission is 5%. The program will display the following: a) The amount of customer’s order (eg. $500.00 or id="mce_marker",000.00) b) The tax amount c) The total amount including tax added d) Commission Amount e) The customer will make ten orders, display the average of the total order and the sum of all orders. You must use at least two methods. Write the output to a file named “Order.txt” The program should also display “Thanks for your business and please come again.” Output: The amount of the Customer’s order $XXX, XXX.XX The tax amount is $XXX,XXX.XX The total Amount…arrow_forward
- how to assign a student an ID number and print it when asked in JAVA can you give me an example if there are several students and I enter a specific student ID it shows me their first name last name and agearrow_forwardIn JavaScript, how can you validate a user’s input to make sure it is both a number and between 20 and 100?arrow_forwardUSING PHP Write a solution to the “FizzBuzz” problem. The FizzBuzz problem is a classic programming interview problem in which a range of numbers is examined to locate those numbers divisible by 3 and 5. If the number is divisible by 3, then print "Fizz." If the number is divisible by 5 then print "Buzz." If it is divisible by both, then print "FizzBuzz." Otherwise, just print the number. You should have an index.html(index.php) file. The index.html (index.php) has a form that submits data to the itself. You may optionally have a style file as well, referenced from both. If the user does not submit a start and stop number for the range (inclusive), then assume that start is 1 and stop is 100. Otherwise, use the specified range. You may use either GET or POST for your form processing. Screen shots of one sample solution are given. You should try to get your solution to look as close to this output as possible.arrow_forward
- Convert the QuartsToGallons program to an interactive application. Instead of assigning a value to the number of quarts, accept the value from the user as input. An example of the program is shown below: Enter quarts needed >> 20 A job that needs 20 quarts requires 5 gallons plus 0 quarts.arrow_forwardJava Programming The program must use a method The program has 4 racers and the race is 50 units long. This program ends the race if any racer passes the ending point and print who won the race. Each racer moves randomly either: a. range from 3 to 8 units b. 5 sin(5) c. 45/2turn, but at least moves 1 unitarrow_forwardYou are a Chemistry major who has to create a program for first time chemistry lab users. The Erlenmeyer flask contains a nitric acid solution. When the student presses a button, 0.5 mL of NaOH solution can be added to a buret, which is set up over the Erlenmeyer flask. An indicator is added to the solution being titrated. The indicator is a substance that changes to blue when the reaction is complete (endpoint). You determine the amount of mixture that will cause this reaction to occur. Create a titration simulator that will allow a student to add up to 18 mL of titrant. Notify the student when the mixture turns blue. In Python please :)arrow_forward
- Prompt the user for their name, and then how many droids, and then how many Wookiees they are looking for. Then print out thename that was given, as well as how many droids and Wookiees they wanted to meet.Here is an example of what you should print:Hi Sean, you want to meet 3 droids and 2 Wookiees. Side note: pls code using JavaScript, I tried coding with Python but was unsuccessful. Also this is not for a grade, it's so I have have a basis understanding of JavaScript.arrow_forwardwrite a program in Java that would ask the clerk to enter the total amount of the customer’s order. The program will then calculate a seven percent (7%) sales tax. Commission is computed based on the following: order amount id="mce_marker" - $200 commission is 2%, order amount $201 - $400 commission is 3%, order amount $401 - $600 commission is 4%, order amount > $600 commission is 5%, The program will display the following: a) The amount of customer’s order (eg. $500.00 or id="mce_marker",000.00) b) The tax amount c) The total amount including tax added d) Commission Amount e) The customer will make ten orders, display the average of the total order and the sum of all orders. You must use at least two methods. Write the output to a file named “Order.txt” The program should also display “Thanks for your business and please come again.”arrow_forwardYou are helping a small business to collect and calculate weekly pay for its employees. Your java program will prompt the user for employee name, hours worked and hourly rate for 10 of its employees. Then your program will provide a way to search for an employee name and display the employe information and calculated weekly pay. The program has been partially created for you. You will just have to fill in the missing part. Use the code below and complete the program. Step 1 and Step 2 are already done. You will complete Step 3 and Step 4.. Note: Use Step 2 code to model your code for Step 3 Note: Use the instructions given in method displayEmployeePay to complete step 4 import javax.swing.JOptionPane;public class Lab1 { public static void main(String[] args) { final int NUM_EMPLOYEES = 10; //Intialize 3 arrays to store employee names, hoursWorked and their hourlyRates. String[] names = new String[NUM_EMPLOYEES]; double[] hoursWorked = new…arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Database System ConceptsComputer ScienceISBN:9780078022159Author:Abraham Silberschatz Professor, Henry F. Korth, S. SudarshanPublisher:McGraw-Hill EducationStarting Out with Python (4th Edition)Computer ScienceISBN:9780134444321Author:Tony GaddisPublisher:PEARSONDigital Fundamentals (11th Edition)Computer ScienceISBN:9780132737968Author:Thomas L. FloydPublisher:PEARSON
- C How to Program (8th Edition)Computer ScienceISBN:9780133976892Author:Paul J. Deitel, Harvey DeitelPublisher:PEARSONDatabase Systems: Design, Implementation, & Manag...Computer ScienceISBN:9781337627900Author:Carlos Coronel, Steven MorrisPublisher:Cengage LearningProgrammable Logic ControllersComputer ScienceISBN:9780073373843Author:Frank D. PetruzellaPublisher:McGraw-Hill Education

Database System Concepts
Computer Science
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:9780134444321
Author:Tony Gaddis
Publisher:PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:9780132737968
Author:Thomas L. Floyd
Publisher:PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:9780133976892
Author:Paul J. Deitel, Harvey Deitel
Publisher:PEARSON

Database Systems: Design, Implementation, & Manag...
Computer Science
ISBN:9781337627900
Author:Carlos Coronel, Steven Morris
Publisher:Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:9780073373843
Author:Frank D. Petruzella
Publisher:McGraw-Hill Education