Sammy’s Seashore Supplies rents beach equipment such as kayaks, canoes, beach chairs, and umbrellas to tourists. Write a program that prompts the user for the number of minutes they rented the piece of sports equipment. Compute the rental cost as $40 per hour plus $1 for each additional minute. (Fix the logic error from Sammy's Rental program)



Display Sammy’s motto “Sammy’s makes it fun in the sun” surrounded by a border composed of repeated “Ss.” Save the file as SammysRental2.java

I just need lines of code and thats it

Answers

Answer 1

Answer:

import java.util.*;

public class SammysRentalPrice {

public static void main(String[] args) {

 System.out.println("SsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSs");

 System.out.println("Sammy's makes it fun in the sun");

 System.out.println("SsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSsSs");

 Scanner s=new Scanner(System.in);

 System.out.print("Enter the rented minutes:");  

 int min=s.nextInt();

 int hours=min/60;

 min=min%60;

 int tot_cost=(hours*40)+(min*1);

 

 System.out.println("total hours is: "+hours);

 System.out.println("total minutes is: "+min);

 System.out.println("total cost is: "+tot_cost);

 

}

}

Explanation: This is the code I made.


Related Questions

Someone please help me

Answers

Answer:

first answer is correct 8

second answer is 12

which way do you swipe in the android os to access shortcuts

Answers

You can swipe from right to left to access shortcuts or the notification bar in Android OS.

Elements of design that distracts the player from the theme and objective of the are called

catfish
red herrings
haystacks
MacGuffins

Answers

Answer:

Red herrings...?

I think Red herrings?

When an item in a menu is gray, it means that _____.


the item has been selected
the item has been selected

the item is unavailable
the item is unavailable

the item only works with another application
the item only works with another application

the item has been deleted

Answers

Answer:

the item is unavailable

Explanation:

this is an extrapolation as you would need more context to be sure but usually grey menus mean it is unavailable

How are the functions different and how do i determine the answer

Answers

Answer:

this isn't a fair question...

you'll either get 2,3 or 4

not a nice question

WILL MARK BRAIN LIST!

Answers

Answer:

First one is A

Second one is B

Explanation:

can someone help me, please

Answers

Answer:

eeeee

Explanation: flamingo youtooz

where and how could you use a switch made out of aluminum foil or copper

Answers

Answer:

You can use the foil as a conductor for the power and you can use the copper as an insulator to break the electric current

Explanation:

Help me plzzzzzzzzzzzzz

Answers

Answer:

(3)squareroot23)ru(jump)-MArio(input)

Explanation:

Mathematics includes the study of such topics as quantity, structure, space, and change. It has no generally accepted definition. Mathematicians seek and use patterns to formulate new conjectures; they resolve the truth or falsity of such by mathematical proof. -_mathsMARIO.(input_f

Yeni

- - - - -- - - -- - -- - --- -- - - -- Mario

Randy is an active man who just learned how to swim. Which of these
attributes is part of his social identity?
A. Learner
B. Swimmer
C. Man
D. Active

Answers

Answer:

C

Explanation:

social identity is given, chosen, and core. Your given identity consists of the conditions that are outside of your control such as birthplace, gender, certain family roles or physical characteristics.

Randy is an active man who just learned how to swim. This attribute is a part of his social identity as a learner. The correct option is A.

What is social identity?

Social identity is innate, predetermined, and fundamental. Your predetermined identity is made up of circumstances beyond your control, such as your location of birth, gender, certain family responsibilities, or physical traits.

The social identity of a person reveals who they are in terms of the groups they are a part of. Social identity groups are typically described by some of an individual's physical, social, and mental traits.

Here, the man just learned swimming, so his identity will be learner because he is not a pro in swimming and does not have experience.

Therefore, the correct option is A. Learner.

To learn more about social identity, refer to the link:

https://brainly.com/question/13652356

#SPJ2

how to book a flight online

Answers

Answer:

https://www.wikihow.com/Book-a-Flight

Explanation:

Here is a simple article I found online on how to do it.

Answer:

First find what airplane you want to attend. Check pricing, seats, legit website, etc.

Next you pick where you want to go and they will show you what is required like id, name, last name, number, etc.

After you apply i think they send you the ticket or you go pick it up.

Hope it helps you

Explanation:

when is the new season of legacies coming out on netflix

Answers

Answer:

Not sure (I couldn't find info) but It is coming out on CW

Explanation:

It is coming out on CW on October 14 2021 so the Netflix release will be much later than that.

you are creating a bugdet for your new business what should you include
A.All income and expense

B.Fixed expense but not income
C.income but not variable expense
D.Fixed and variable expense but not taxes

Answers

Answer:

A is your answer (not entirely sure but I hope it helps!)

What are the stages in the production of clay​

Answers

Explanation:

There are 6 essential stages of clay:

1. ) Slip. Use: Slip is most commonly used to join pieces of wet or leather hard clay together.

2.) Wet clay. Use: Wet clay can be used to make an infinite array of pieces using many different techniques.

3.) Leather-hard clay. ...

4.) Dry clay. ...

5.) Bisque. ...

6.) Glaze ware.

mention any four features which a standard computer laboratory should have​

Answers

Answer:

Explanation:

Computers

Outlets

Desks

Servers

The four features that a standard computer laboratory should have​ are a computer system, power source, Desk and chairs, and Server and Lan connectivity.

What is a computer?

A computer is a digital electrical machine that may be configured to automatically perform arithmetic or logical functions. Programs are general collections of operations that modern computers can do. These programs allow computers to do a variety of jobs.

The four features that a standard computer laboratory should have​ are:

Computer systemsPower source to power computerDesk and chairs for computers and studentsServer and Lan Connectivity

Hence, the four features that a standard computer laboratory should have​ are a computer system, power source, Desk and chairs, and Server and Lan connectivity.

Learn more about Computer:

https://brainly.com/question/21080395

#SPJ2

what is a sensitive compartmented information program

Answers

Answer:

cpu

Explanation:

The online underground is used _____. Select 3 options.

Answers

You forgot to put the options

!!help!!
Why is it a good idea to store numeric data in variables in a program?​

Answers

Answer:

D I think

Explanation:

These 2 questions PLEASEEE (:

Answers

Answer:

on the first one pixels on the second i think it is feathering

HELP THIS IS SO DIFFICULT

Answers

It would be 11111, and decimal 31
Answer:

Binary: 11111

Decimal: 31

Explanation: Hope I was able to help!

the full meaning of UNIVAC and ENIAC​

Answers

Explanation:

ENIAC - Electronic Numerical Integrator and Calculator. UNIVAC - Universal Automatic Computer (First Digital Computer)

hope it's help you cutty

UNIVAC

UNIVAC, which stood for Universal Automatic Computer, was developed by J. Presper Eckert and John Mauchly, makers of ENIAC, the first general-purpose electronic digital computer.

ENIAC

ENIAC filled an entire room.ENIAC stands for Electronic Numerical Integrator and Computer. John Mauchly and J. Presper Eckert built the machine at the University of Pennsylvania at the behest of the U.S. military.

Hope it helps

Thank You !!!

What is the difference between algorithm and program?

Answers

Answer: The difference is that an algorithm is a precise step-by-step plan for a computational procedure that mainly begins with input value, yields, and output value. While a program is instructions written in code to explain to a computer what to do. Like how the CPU can send a command to the GPU to tell it what image to make. The better the CPU the better and faster it can read and complete it's given instructions.

Explanation: Trust me with this.

Two people, Alice and Bob are using the key sharing algorithm. They have chosen a clock size of 17 and a base of 5. Alice's private number is 4, while Bob's is 6. The first step in creating the shared key is for each party to generate a PPN based on their private number, the base and the clock size. Alice has already sent her PPN to Bob. She receives Bob's PPN, which is 2. Alice uses Bob's PPN (2), her private number (4), and the clock size (17) to calculate the shared key. What is it

Answers

Answer:

fsfsf

Explanation:

A company is completing research and development for software which it is planning to produce in approximately 2 years time. Which of the following assumptions should the company make about the transistor density of the hardware which will be used to run this software?Group of answer choices

Answers

Answer:

The transistor density of the hardware which will exist in 2 years time will likely be double the current processing speeds.

Explanation:

The other 3 options are incorrect

Answer:

The transistor density of the hardware which will exist in 2 years time will likely be double the current processing speeds.

Explanation:

I just got that feeling.

BRAINLIEST, PLS HELP ME!


List 3 things you could use for equipment to take a family portrait

Answers

Tripod.
Triangles.
Touchpoints/Connections.

To take a family portrait, you could use the following equipment -

CameraTripodRemote Shutter Release

How to  use the above equipment

1. Camera - A DSLR (Digital Single-Lens Reflex) camera or a mirrorless camera with manual controls will provide high-quality images and flexibility in adjusting settings.

2. Tripod  - A sturdy tripod will help keep the camera stable and ensure sharp images, especially in low light conditions or when using longer exposure times.

3. Remote Shutter Release -  A remote shutter release or a self-timer function on the camera can help avoid camera shake when capturing the family portrait, allowing everyone to be in the frame without rushing to press the shutter button.

Learn more about family portrait at:

https://brainly.com/question/411062

#SPJ6

¿Por qué se distribuye la electricidad a alta tensión y no a baja?

Answers

Answer: La energía eléctrica es un producto del voltaje y la corriente (P = IV). También es el producto de la resistencia y el cuadrado de la corriente (P = IxIxR). A medida que transmite energía eléctrica a través de cables, encontrará pérdidas de potencia por resistencia de cables. Cuanto mayor sea la corriente, mayores serán las pérdidas de potencia de resistencia.

what are titles that i should talk about in my ppt about history of computer science???????
i need help ASAP ! thank you!

Answers

Talk about who created it when it was created and the begging of it. Talk about how it established over the years. Then talk about the achivements like the first computer.

What is the correct answer

Answers

Answer:

Multiuser/Multitasking

Explanation:

The question will be answered using the following two points:

- The fact that the operating system allows Ali and his friend to be logged on at the same time is known as a multiuser operating system

- The fact that the operating system allows Ali's friend to access documents while Ali is still logged in is refer to as multitasking.

Add me as brainlist

which is an ipsec protocol that authenticates that packets received were sent from the source?

Answers

Answer:Encapsulating Security Payload (ESP)

Explanation:Encapsulating Security Payload (ESP) is a member of the IPsec protocol suite. It provides origin authenticity through source authentication, data integrity through hash functions and confidentiality through encryption protection for IP packets.

Why is data the most important asset an organization possesses?

Answers

Answer:

It helps organizations/businesses to stay relevant in the area/internet/etc.

Explanation:

Data is an asset and is one of the most important assets an association has because it is unique in its detail and context and can be used strategically to ensure we remain relevant and viable.

Other Questions
Help plzzzzzzzzzzzzggdgdbd You have $350 in your bank account. One weekend, you spend 20% of your money on newclothes. The next weekend you work to earn some money and increase your savings by 20%.How much money do you have in your account now? PLEASE HELP ME WITH THIS QUESTION!!!!! The table below represents a linear function. Find thevalue of y when x = 2.- 2046y481620 Which change resulted from the fall of the western Roman Empire?The use of established trade routes declined.New military tactics were developed How can understanding effective personal finance strategies improve your life? what does the hypodermis do for your internal organs? If Kevin's team scored 56 points and Rick's team scored 32 points, whatpercentage of the total points was Kevin's? What percentage was Rick's?Show this information as a fraction Translate the following sentences into French.10. The woman went downtown.11. My female friends had a drink at the neighborhood bar.12. The mall is across from the modern art museum.13. The wax statues are in front of the paintings.14. The temporary exhibit is at the end of the gallery. Given that P= 7x + 20 2y.Find P when:7 and y = 9 If a system of equations has no solution, what does the graph look like? Write a paragraph that evaluates Odysseus's qualifications as an epic hero? I need help linking thesse sentances together:Hace cinco aos que fui a Costa Rica. Planeamos nuestro viaje hablando de el y comprando boletos de avin con anticipacin. Fui conmigo familia. Fuimos a Costa Rica en avin. Un da fuimos a dar un paseo en bote por una jungla con monos. Fue increble. Tardamos una hora en llegar desde donde nos alojbamos.This is spanish two Find 8 adjectives in the poems rain in the summer and the moon L 1.42 Test (CST): Introduction to Music AppreciationQuestion 14 of 15Which of the following notes is right below G in the bass clef?A.B.Im trying to see if its right what is the effect of smoke? pls need an answer asap!!--------------------------------- Estimate the solution to the following system of equations by graphing3x+5y=146x-4y=9 who was the 34th president?? What behaviors or ideas does Jack most clearly disapprove of, based on this passage? Check all that apply. being untruthful eating too much sleeping too much overstaying ones welcome pursuing romance