Skip to content
← Back to Community
Need help with a part on a JAVA assignment
Profile icon
mnp

I have the sheet with my assignment attached. I need some help with question 2. I'm not quite sure how to make it go back to 0 once it hits 360. I will try to attach the code I have as well (The second image)

This file cannot be displayed: https://storage.googleapis.com/replit/images/1535408572037_404788597228c5d6ac099237e9cd53a9.pn
This file cannot be displayed: https://storage.googleapis.com/replit/images/1535408599325_58344f4c26485eabfa4114e191e0840b.pn

Answered by JoshDaBosh [earned 5 cycles]
View Answer
Voters
Profile icon
JDJGInc_Offical
Profile icon
mnp
Comments
hotnewtop
Profile icon
JoshDaBosh

I'm not sure what you're program is since it just says "Uploading java.docx", etc. but if it's an integer counter then i would suggest using modular operations.

Profile icon
mnp

@JoshDaBosh I just updated it to pictures instead

Profile icon
JoshDaBosh

@mnp this is c/c++ right? just making sure i give correct help for the right language

Profile icon
mnp

@JoshDaBosh I'm sorry this is Java actually

Profile icon
JoshDaBosh

@mnp oof ok, i'll readapt it then

Profile icon
mnp

@JoshDaBosh Thank you! Sorry about that

Profile icon
JoshDaBosh

@mnp https://repl.it/@JoshDaBosh/some-example
There's no need to set it back to 0, as you can see in the program.
I've added some extra touches to it to make it look better but the core code is lines 22-25 if you already have preset variables times, amt, and inc.

Profile icon
JoshDaBosh

@mnp if you want it to still use a for loop, just nest the for loop in another for loop which counts the amount of times you want to count to 360. It's essentially the same logic that i used but way longer and complicated.

Profile icon
kira143

@JoshDaBosh It helps a lot for my work. Thanks for sharing these effective and helpful ways https://stokednomads.com/

This file cannot be displayed:

Profile icon
alenaofficial

@JoshDaBosh
Best Mouse For CAD · 3Dconnexion Cad Mouse [3DX-700052] · 3Dconnexion 3DX-700062 Cadmouse Wireless ·
https://best-mouse.com/best-mice-for-autocad/

image

Profile icon
kira143
Profile icon
kira143

glad to be a visitor of this sodding website, appreciate it for this rare information! https://www.parklawncemetery.ca

image

Profile icon
erider

The world of today is all about sustainability and modernism. eriders is a smart initiative to make transportation from one place easier to another.

Profile icon
Conyjohn

At the point when you are searching for your best help we are free in all over united kingdom to work with for you with our https://www.expertwriters.co.uk

Profile icon
dawnknight122

I bought the Salesforce JavaScript-Developer-I exam questions by DumpsTool just a week before my JavaScript-Developer-I exam and I nailed the Salesforce Certified JavaScript Developer I (SP22) Exam in one go.

Profile icon
Denvermike

When you start writing an essay, the big task ahead can seem daunting. It may seem easier to be an ostrich and stick your head in the sand expecting it to disappear, but we both know it won't. Procrastination can be deadly, so stop ignoring the problem and get to work. https://domyonlineexam.com/ged.php

Profile icon
jassonroy

At Coupons Agent, we provide all verified coupon and promo codes, including the most popular stadium goods promo code and covenant eyes promo code, and many more discount deals.

https://couponsagent.com

Profile icon
ReadykonceptsAl

Great information you provide in your articles. I will bookmark your weblog and check again here regularly https://gemhealthcare.com

Profile icon
scatrogger01

The Lady Shake was created to help women maintain their well-being so that they can take care of all their family members. Use Lady Shake Discount Code if you want to buy a Lady Shake at a discounted price.

https://www.savackers.com/the-lady-shake-discount-code

Profile icon
tararaajput

Hi, I'm Tara Raajput and I am brand new to the companion business! I'm an instigative sexy Indian stunner And then for your pleasure! Female Escorts in Gurgaon | Aerocity escorts

Profile icon
mairanacase1

We provides you with best quality E Board, electric longboard for sale and electric skateboards. Get the best Motorized Skateboard at the cheapest prices.

https://www.theollieboard.com

Profile icon
mairanacase1

We provides you with best quality E Board, electric longboard for sale and electric skateboards. Get the best Motorized Skateboard at the cheapest prices.

https://www.theollieboard.com

Profile icon
LouraSmith
Profile icon
ishagupta14
Profile icon
AlenMorgan
Profile icon
kira143

glad to be a visitor of this sodding website, appreciate it for this rare information! https://www.westminstercemetery.ca

Profile icon
patrickrall

No importa qué tan minucioso sea el trabajo de su robot aspirador, puede haber algunas grietas o esquinas que no se pueden alcanzar del todo. Ahí es cuando necesita una aspiradora de mano o de tamaño completo para hacer el trabajo. Eche un vistazo a la aspiradora de varilla inalámbrica Dyson V11 Outsize ($ 699,99), por ejemplo, que nombramos una de las mejores aspiradoras Dyson del año por su cabezal de cepillo grande y su recorrido de limpieza más grande. Para aquellos que buscan algo a un precio asequible , está el Bissell PowerClean Rewind ($ 93.49), que los clientes elogiaron por ser fácil de ensamblar y capaz de manejar diferentes tipos de pisos. https://ofertastop.page/ofertas/cupones-descuento-dintex/

Profile icon
RomanDavis3

Assignment Writing is not enough east task for those students who have taken admission in new classes and are not aware of grammar rules and writing techniques but I am also going to share them a link of https://www.theacademicpapers.co.uk/dissertation-writing-services-uk.php
so that they may easily contact the expert writers for getting online writing skills.
image

Profile icon
marygold303

JAVA assignments require special pieces of knowledge to know. You may visit our custom essays uk https://qualityessays.co.uk to read articles on this theme.

Profile icon
kira143

nice and utilitarian info on this website, too I conceive the design and style has superb https://xactsupply.com/ features.

Profile icon
kanadeg

Do you want your child to study among the best schools? If yes, then read this post. Here is the list of the best schools in karachi for 2022.

Profile icon
Couponsva

In such cases, I advise you to turn only to proven professionals who can solve any pressing issue. Personally, I actively collaborate with the best writers https://couponsva.com/

Profile icon
kanadeg

Are you in search of the best gaming graphics cards, gaming mouse pads, and gaming equipment? Get it now only from Zestro gaming at a discounted price. The graphics card price in pakistan keeps on varying, buy now to enjoy your favorite [email protected]

Profile icon
kira143

You get more brand awareness for your store and some seo benefits. There are plenty free sites for you to do so and here are some where you can post right away:https://geosyntheticsystems.ca/

Profile icon
lindatyler

In such cases, I advise you to turn only to proven professionals who can solve any pressing issue. Personally, I actively collaborate with the best writers https://essaysservice.com/methodology-chapter-for-a-dissertation.html

Profile icon
Conyjohn

Very valuable information on a Wikipedia writing agency that can help us in saving time https://www.expertwriters.co.uk/writing/assignment

Profile icon
kira143

@Conyjohn While looking next to his desk I saw a carded figure from this old Fisher Price line "Husky Helpers", but it was one I never saw before. He informed me it was an Astronaut from the same toyline but they were only sold on blister cards, no other space-theemed sets we're ever made. https://coffeehero.com.au/blogs/news/tanzanian-coffee-beans-a-complete-guide

image

Profile icon
AlexJuvion

Are you looking for the best assignment experts in UK who help you to complete your academic task - http://www.qualityassignment.co.uk/services/assignment-help/, then feel free and hire experts of Quality Assignment which is leading assignment assistance provider company in UK.

Profile icon
kira143

Excellent article, this type of article always boosts interest https://cooperandsmith.com.au/

image