1.CSE 1300
Problem Solving Practice Conditional Statements
Question 1: Student Fees
All KSU students pay fees in addition to their tuition.
Using the code
...
nts pay fees in addition to their tuition.
Using the code provided below as a starting point, write a conditional statement that determines how much a student will pay in fees.
• Students registered for 1 – 4 hours pay $843 in student fees.
• Students enrolled in 5 or more hours pay $993 in student fees.
The program should also display a message to students who have not enrolled in any classes: “You are not enrolled in any classes right now.”
NOTE: You must use the variables included in the code snippet get credit for this question.
import java.util.Scanner;
class Main {
public static void main(String[] args) {
int creditHours;
int fees = 0;
Scanner myScanner = new Scanner(System.in);
System.out.print("Please enter the number of credit hours you are taking this term: "); creditHours = myScanner.nextInt();
myScanner.close();
//YOUR CODE GOES HERE
} }
Break the Problem Down
Answer the following questions, then use the information to write your code.
What are the inputs in the pseudocode above? (INPUT)
What are we storing in the pseudocode above? (MEMORY)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
Problem 2: Block Tuition
The cost of KSU’s tuition is determined by the number of credit hours a student enrolls in.
Using the chart below, write a conditional statement (ONLY) that sets the value of a tuition variable to what that student will owe.
NOTE: For this problem you can assume that all students are enrolled in a minimum of 12 hours.
Number of Credit Hours 12
13
14
15 or more
Cost (in USD) $2224 $2410 $2595 $2718
Break the Problem Down
Answer the following questions, then use the information to write your code.
What do we need to store? (MEMORY)
What are the inputs in the problem statement above? (INPUT)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
Problem 3: Class Standing
Undergraduate students will be classified based on the number of earned institutional hours.
• Freshman:
• Sophomore:
• Junior:
• Senior:
0 - 29 hours
30 - 59 hours 60 - 89 hours
90 hours or more
Write a complete program that prompts the user for the number of credit hours they have completed. Write a conditional statement that prints out their class standing based on the information they provided.
Sample Output
Break the Problem Down
Answer the following questions, then use the information to write your code.
What do we need to store? (MEMORY)
Please enter the number of credit hours you have earned: 29 You are a freshman.
What are the inputs in the problem statement above? (INPUT)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
Problem 4: Maximum Course Load
KSU’s policy on maximum course loads during the academic year is as follows:
A student in good standing may register for up to 18 hours. The Registrar may approve up to 21 hours for students with an institutional GPA of 3.5 or higher. Students
Write a complete program that prompts the user for the number of credit hours they have signed up for. Write the necessary conditional statement(s) to address the stipulations in KSU’s policy. Once the maximum number of hours is determined, display a message to the user that states “You may enroll in X credit hours this semester.” where X is the number of credit hours determined by your program.
Sample Output
Break the Problem Down
Answer the following questions, then use the information to write your code.
What do we need to store? (MEMORY)
Please enter your GPA: 3.75
You may enroll in up to 21 credit hours this semester.
What are the inputs in the problem statement above? (INPUT)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
Problem 5: First-Year Seminar
All first-year full-time students entering Kennesaw State University with fewer than 15 semester hours are required to complete a First-Year Seminar. Students with 30 or more credit hours are not eligible to enroll in a First-Year Seminar.
Write a complete program that prompts the user for the number of credit hours they have completed. Write the necessary conditional statement(s) to address the stipulations in KSU’s policy.
When you run your program, it should display one of the following messages to the screen:
• You must enroll in First-Year Seminar.
• You do not have to take First-Year Seminar.
• You are not eligible for First-Year Seminar.
Sample Output
Break the Problem Down
Answer the following questions, then use the information to write your code.
What do we need to store? (MEMORY)
Enter the number of credit hours have you completed: 30
You are not eligible for First-Year Seminar.
What are the inputs in the problem statement above? (INPUT)
What calculations are needed? (PROCESSES)
What needs to be displayed to the user?
(OUTPUT)
How many conditions are there in your problem statement?
What are they?
Does something need to happen if the condition(s) are not met?
What type of conditional statement do you need?
Solution in Java
View More
2.This first part of the Individual Research Project is an Outline and Annotated Bibliography. The
Outline should provide a very brief
...
tline should provide a very brief overview of what you think you will do in the Policy Brief.
The Annotated Bibliography requires you to summarize at least three peer-reviewed scholarly
sources you will cite in the Policy Brief.
This assignment is designed to get you thinking about your topic in a way that clearly anticipates
the writing you will do for the Policy Brief. We want you to brainstorm and do a bit of research
well in advance of the deadline for the Policy Brief and, most importantly, we want you to put
your ideas down on paper so that we can give you feedback before writing the actual Policy
Brief. In other words, we are asking you to submit an Outline and Annotated Bibliography so
that we can help you write the best Policy Brief possible.
Your Outline should be divided into the following five sections and should be written in
complete sentences:
I. Audience: Identify the audience you are addressing and consider what that audience
is interested in. Who are you talking to in the Policy Brief and what does this suggest
about the approach you should take? (75-100 words).
II. Problem: State how you know the issue exists. What is the proof that students need
to improve this skill? (125-150 words).
III. Importance of Problem: Indicate why this problem matters. What are the
consequences of the problem not being addressed? Why do students need to improve
this skill? (100 words)
IV. Solution: Identify your preferred solution. What solution will work in your context
and why? (75-100 words)
V. Alternative Solution: Identify at least one other possible solution. What other
solutions did you consider? (75-100 words)
The total length of the Outline should be between 450 and 550 words.
When you submit your Outline, you must also include an Annotated Bibliography. An Annotated
Bibliography is an alphabetical list of research sources that provides bibliographical data (the
title, author, date, publisher, etc.) and a short summary or annotation of the source.
Your Annotated Bibliography should contain a minimum of three scholarly or peer-reviewed
sources, each with an accompanying annotation that is between 150 and 250 words long. The
annotations must summarize the research question or thesis, research methodology, results, and
conclusion. Annotations must include summaries and paraphrased information, NOT quotations.
A good annotation will include two separate paragraphs: 1) a paragraph summarizing the
research question or thesis, research methodology, results and conclusion; and 2) a paragraph
commenting on why this source is relevant for your research.
View More
3.Hi, i require somebody with advance knowledge in the following topics and teaching skills.
Functions, Cartesian coordinates, graphs,
kinematics.
Trigonometric functions
Exponential and
...
ions, Cartesian coordinates, graphs,
kinematics.
Trigonometric functions
Exponential and logarithmic
functions
Limits and differentiation
Algebra, vector and matrices
Combinatorics and Probability
This task is divided in 3 stages.
each stage will have its own milestone and will be released upon completion and review.
Please just bid if you are available for all the tasks, check carefully the times.
Complete a questionary with the math questions, approx. 7 pages every answer should be complete and extensive and fully explained in order to be fully understood the process. Approx. time 2 to 2.5 hours.
Task 2 will take place on
Monday, September 6, 2021 at: 1:00pm / 13:00
Coordinated Universal Time (UTC)
This task will include a similar questionary with A B OR C Answers, approx time 1.5 hours to 2 hours, This questions will be provided one by one and requires that we connect by chat live.
Task 3 will take place on
Monday, September 6, 2021 at: 1:00pm / 13:00
Coordinated Universal Time (UTC) after task2
Upon completion of task 2 a document similar to task 1 will be provided in pdf, this one need to be completed within 4 hours after provided approx. 7 pages every answer should be complete and extensive and fully explained in order to be fully understood the process.
For now I will provide task 1 document.
View More
7.Wal-Mart has approached you with the opportunity to enter a sale lease-back transaction with them on a one million square
...
a one million square foot warehouse that they have recently developed. In typical Wal-Mart fashion, they have given you a “take it, or leave it” final offer. The terms are:
Purchase Price: $165 million
Facility Size 1,000,000 SF
Lease Term 7 years
Rent $7 PSF NNN
Operating Expenses Wal-Mart (tenant) pays all operating expenses, utilities, and property taxes (owner pays none)
Renewal Options 7-year extension at $8 per ft2; a second 7 year extension at $9.50 per ft 2; a third 7 year extension at $11.50 per ft.2. All at Wal-Mart’s choice (i.e. it’s Wal-Mart’s option). Wal-Mart pays all operating expenses, utilities, property taxes, and capital expenditures undertaken during all lease renewal periods.
You know the market and feel that the location is good, and that the warehouse market is in good supply/demand balance. Vacancy rates are 4% - 5% in quality facilities, while net rents in the market are running about $7.50 - $8 PSF (i.e. a slight premium to the Wal-Mart lease). You have recently seen comparable sales that have traded in the range of $160 - $200 PSF. You also know that implied discount rates are currently at about a 3% premium to implied cap rates and capital costs are running at $0.50 PSF per annum.
You know from your Real Estate Finance & Investments classes that you can value a building using a direct capitalization approach, a comps analysis and a DCF analysis. You also have a handy template that you’ve been using for these analyses which you will need to complete in order to come to a view on value.
It’s decision time…would you agree to pay the $165 million that Wal-Mart is asking? Why or why not?
View More
9.1) Employees in 2012 paid 4.2% of their gross wages towards social security (FICA tax), while employers paid another 6.2%.
...
ers paid another 6.2%. How much will someone earning $34,000 a year pay towards social security out of their gross wages?
2) The population of a town increased from 3350 in 2005 to 4800 in 2010. Find the absolute and relative (percent) increase.
3)A company's sales in Seattle were $400,000 in 2012, while their sales in Portland were $295,000 for the same year. Complete the following statements:
a. Seattle's sales were
% larger than Portland's.
b. Portland sales were
% smaller than Seattle's.
c. Portland sales were
% of Seattle's.
4) A store has clearance items that have been marked down by 55%. They are having a sale, advertising an additional 30% off clearance items. What percent of the original price do you end up paying?
5) A friend has a 83% average before the final exam for a course. That score includes everything but the final, which counts for 15% of the course grade.
What is the best course grade your friend can earn?
%
What is the minimum score your friend would need on the final to earn a 75% for the course?
%
Give answers accurate to at least one decimal place.
6) A car is driving at 50 kilometers per hour. How far, in meters, does it travel in 3 seconds?
meters
Give your answer to the nearest meter.
View More
10.I need assistance with how to compare the culture of the Anglo-Saxons to the culture that can be found in
...
nd in a modern television show. I am looking for something outside of the box, and would especially like to compare cultures between the Anglo-Saxons and the ways of life that can be found in the show Avatar: The Last Airbender. Sadly, I'm having a hard time finding relations other than the hardships of banishment. If there is a writer that could offer up further potential comparisons or how I can further elaborate on the similarity of banishment between the two subjects, I believe I will be able to complete my essay much more efficiently.
View More
11.I have a research project and need help, this is the data set description:
Health researchers have identified a rise in
...
identified a rise in contacting STIs (sexually transmitted infections) among young adults and are interested in understanding why. The researchers measured several variables related to condom use including: likelihood of using condoms in the future, previous use of condoms, perceived ability for self-control in sexual relationships, and perceived risk for contracting STIs.
Method
This study is looking to understand why there has been a rise in sexually transmitted infections. Participants were asked to answer 4 different questions and the results were analyzed.
Participants: Participants include 100 men and women ages ranging from 18-38. The mean age in this experiment is 24 years old and there is an equal amount of men and women.
Name of Independent Variable(s): Provide a description of all independent (or grouping) variables, including their levels. Each variable should be described separately and the name of each new variable should be indented and underlined.
Name of Dependent Variable: Provide a description of the dependent variable, including how it was operationalized.
Following the description of all your variables you should clearly state (in a sentence) the research question you intend to investigate. Next, you should say something along the lines of, “This research has the following hypotheses:
Ha: State the alternate hypothesis in BOTH conceptual and statistical form.
H0: State the null hypothesis in BOTH conceptual and statistical form
Also I need to know what analysis to complete in spss
View More
12.I have an online math test coming up, and I am totally lost in the class. The way my test
...
it will be assigned to me at 1pm on 4/10/20 (this Friday) and it will be due by 2pm. So I will need someone helping me from 1-2pm so I can complete it on time. To be quite frank I will need someone to just solve the questions for me so I can turn it in on time. I would like more sessions in the future to actually help me work through it. But for this test I need to just see the how the problem is work out. I have attached some files of example questions of what you can expect. But again, these are NOT the questions I need solved. I will not have those questions until the day of the test. So I need someone who can complete problems of this caliber quickly. Thank you.
View More
16.NOTE: This week you will write about tone and theme in TWO different poems.
You must choose one from
...
from the Romantic period,
and then you choose one from EITHER the Renaissance or Victorian periods to compare to the Romantic.
The poems are provided for you in the overview pages for each period of poetry.
To accomplish that, you must follow the above steps and complete the TPFASTT worksheet in order to gain the information you need to identify the theme/tone and to write about it. You will choose TWO poems on which to write. You will choose TWO. That means you'll have two responses about tone and two responses about theme.
This is important: please make sure that the two poems you choose share the same theme. This is extremely important for being able to write the essay in the final module. They must share the same theme. Consider the following subjects when determining a theme: power, love, control, religion, science, gender roles, death/loss/mourning, beauty, or values.
View More
17.: There are four things that you need to do in order to successfully complete this module's discussion questions assignment.
...
on questions assignment. First, if you have not already done so, read pages 381-382 in the textbook. Second, complete the discussion questions that appear below. Please copy and paste the questions onto a Word document; then, type your responses after each question. To view the questions, please scroll down.
Third, in the textbook, read “A Modest Proposal” by Jonathan Swift (pages 214-222) and “How to Raise a Pimp” by Darryl L. Fortson, M.D. (pages 231-233). Fourth, complete the discussion questions regarding “A Modest Proposal” and “How to Raise a Pimp.” Again, please copy and paste the questions onto a Word document; then, type your responses after each question. To view the questions, please scroll down.
Due Date: Please see the Canvas announcement regarding this assignment.
Final Thoughts: Good luck with this assignment. You do not need to write an essay response to each question, so please do not do so. In fact, you should be able to successfully respond to each question in several sentences or a paragraph at most. If you have any questions or concerns, please feel free to e-mail or call me.
Discussion Questions
Pages 381-382
1. On pages 381-382, there is paragraph about tropical fish. Please quote the author’s stated claim exactly as it appears in the paragraph. (Hint: the stated claim is one sentence long.)
2. On pages 381-382, there is paragraph about tropical fish. Since this paragraph is a satire, you know that the stated claim is not what the author truly believes, so please paraphrase the author’s implied claim. (Hint: the implied claim should be one sentence in length.)
3. On page 382, there is paragraph about circuses. Please quote the author’s stated claim exactly as it appears in the paragraph. (Hint: the stated claim is one sentence long.)
4. On pages 381-382, there is paragraph about circuses. Since this paragraph is a satire, you know that the stated claim is not what the author truly believes, so please paraphrase the author’s implied claim. (Hint: the implied claim should be one sentence in length.)
Discussion Questions
“A Modest Proposal” by Jonathan Swift
1. The author of the work is not the same individual who is making the claim. In fact, Swift assumes a persona, the persona of someone he, hopefully, is not. List some of the characteristics of his alter-ego.
2. What is the proposer’s (we will use the word proposer to identify the individual making the claims) attitude toward the beggars he describes in the opening paragraphs?
3. In one sentence, paraphrase the proposer’s stated claim.
4. In one sentence, paraphrase the proposer’s implied claim.
5. According to the proposer, what are some of the issues that need correcting?
6. How does the use of facts and statistics help to bolster the proposer’s credibility?
7. Who will be the beneficiaries of this modest proposal?
8. Identify at least four good things that will come from this modest proposal.
9. Does the proposer address any arguments that might be raised against his modest proposal? If so, how does he address them?
10. Looking at the final paragraph, why does the proposer end his modest proposal in this manner?
11. Who is the intended audience of this satire?
12. Did you enjoy this satire? Why?
13. Does this satire have any relevance for us reading it today? If so, what is it?
Discussion Questions
“How to Raise a Pimp” by Darryl L. Fortson, M.D.
1. In one sentence, paraphrase the author’s stated claim.
2. In one sentence, paraphrase the author’s implied claim.
3. According to the author, what are the four things that one must do in order to raise a pimp?
4. Who is the intended audience of this satire?
5. What is the author trying to accomplish with his satire?
6. Did you enjoy this satire? Why?
7. Do you think this satire is effective? Why?
View More
18.Hey I need help writing a couplet poem
Using this question and answer
What happened to the European population in the High
...
ean population in the High Middle Ages?
The number of people almost doubles from 38 million to 74 million people.
List two reasons for the change in population during this time.
Conditions in Europe were more settled and peaceful after the invasions of the early Middle Ages had stopped. Food productions increased because a change in climates improved growing conditions.
What two inventions for the horse made it possible to plow faster?
A new horse collar and the use of the horseshoe.
Define the term manor.
A manor was an agricultural estate run by a lord and worked by peasants.
What three ways did serfs pay rent to their lords?
By giving the lords a share of every product they raised, paying for the use of common pasture lands and turning over a part of the can't from ponds and streams.
Name the three great events celebrated by feasts within the Christian faith.
Christmas (celebrating the birth of Christ), Easter (celebrating the resurrection of Christ), and Pentecost (celebrating the descent of the Holy Spirit on Christ's disciples 50 days after His resurrection).
What two features changed the economic foundation of Europe?
A revival of trade and an associated growth of towns and cities.
For what two reasons did merchants build a settlement rear a castle?
Because it was located along a trade route and because the lords of the castle would offer protection.
By 1100, What four rights were townspeople getting from local lords?
The right to buy and sell property, freedom from military service to the lord, a law guaranteeing the freedom of the townspeople, and the right for an escaped serf to become a free person after living a year and a day in the town.
Describe the environment of medieval cities.
The cities were dirty and smelled from animal and human waste. Air was polluted from wood fires. Water was polluted as well.
What three steps did a person complete to become a master in a build?
He first became an apprentice to a master craftsperson. After 5-7 years he became a journeyman and worked for wages. Upon completing a masterpiece which was judged, he/she could be declared a master and join a guild.
View More
19.I need your help in order to complete the following assignments in relation to Economics under MBA program.
1. Write 1000
...
rogram.
1. Write 1000 word essay on the contribution of the concept of economic calculation to understand the limits of the corporation and the structure of governance.
2. Write a 1000 word essay on the role of entrepreneur and entrepreneurial discovery.
3. Write a 1000 word essay on how the heterogeneity of capital and risk affect the organization of business.
These are the assignments, the deadline set on 26.02.2018 (Monday Noon). It must be plagiarism free with APA format and citation style.
Thank you so much for your help in advance.
View More