Question
Q1. For the following questions use if-else blocks. You need to write just few lines of java codes (no class or method codes needed):[8x5=40] d.
Q1. For the following questions use if-else blocks. You need to write just few lines of java codes (no class or method codes needed):[8x5=40]
d. Write java codes to implement that if it is raining or if it is snowing we need to print the message: The weather is not favorable, otherwise print the message: The weather is favorable. e. Write java codes to implement that if the student took less than 17 credits and if s/he got either A, or B or C in the pre-requisite course then s/he can enroll in the new course. f. Write java codes to calculate interest for principal = 1500.00 and interestRate = 0.10 (10%). Declare all the variables as double. Print the accrued interest with an appropriate message.
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started