Computers and Technology, 14.03.2020 04:45 kayranicole1
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit that is 10 times the student’s grade point average. In other words, a student with a 3.2 grade point average receives a $32 credit. Create a class that prompts a student for a name and grade point average, and then passes the values to a method that displays a descriptive message. The message uses the student’s name, echoes the grade point average, and computes and displays the credit. Save the application as BookstoreCredit. java.
Must use the following code and variables:
import java. util. Scanner; //import statement allow use of Scanner class
public class BookstoreCredit
{
public static void main(String[] args)
{
//Add variables (student name, student gap and bookstore credit)
String studentName;
double studentGpa; //double declaration for student gpa (hold numbers)pg.71-72
double bookstoreCredit; //double declaration for bookstore credit (hold numbers)pg.71-72
//insert a Scanner class object declaration - pg.84 You Do It #4
//add missing scanner class here
//Add prompt for the integer value and an input statement that accepts the value pg.80
//add missing statement here
studentName = input. nextLine(); //retrieves the next line of data and returns it as a String pg.79
//Add prompt for the integer value and an input statement that accepts the value pg.80
//add missing statement here
studentGpa = input. nextDouble(); //retrieves input as a double pg.79
//bookstore credit is 10 times the student gpa
bookstoreCredit = studentGpa * 10;
//Output statement displays student’s name, echoes the grade point average, and computes and displays the credit pg.80
System. out. println(studentName + ", with a " + studentGpa + " GPA you receive a $" + bookstoreCredit + "credit!");
}
}
Answers: 1
Computers and Technology, 22.06.2019 12:20
Usually, when we sniff packets, we are only interested certain types of packets. we can do that by setting filters in sniffing. scapy’s filter use the bpf (berkeley packet filter) syntax; you can find the bpf manual from the internet. set the following filters and demonstrate your sniffer program again (each filter should be set separately): (a) capture only the icmp packet. (b) capture any tcp packet that comes from a particular ip and with a destination port number 23. (c) capture packets comes from or to go to a particular subnet. you can pick any subnet, such as 128.230.0.0/16; you should not pick the subnet that your vm is attached to.
Answers: 3
Computers and Technology, 23.06.2019 06:40
How many nibbles can be stored in a 16-bit word?
Answers: 1
Computers and Technology, 23.06.2019 14:00
Select the correct answer. a company is currently focusing on creating specific management goals for itself. which level of maturity is the company demonstrating under the sse_ccm framework? a. performed informally b. planned and tracked c. quantitatively controlled d. well-defined e. continuously improving
Answers: 2
Computers and Technology, 24.06.2019 05:50
What all vehicles has tesla inc. created over the years
Answers: 3
To encourage good grades, Hermosa High School has decided to award each student a bookstore credit t...
Physics, 06.05.2021 14:00
History, 06.05.2021 14:00
Mathematics, 06.05.2021 14:00
History, 06.05.2021 14:00
Social Studies, 06.05.2021 14:00
Mathematics, 06.05.2021 14:00
Mathematics, 06.05.2021 14:00
History, 06.05.2021 14:00
Geography, 06.05.2021 14:00
Health, 06.05.2021 14:00
Mathematics, 06.05.2021 14:00
Mathematics, 06.05.2021 14:00