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
3.1) Follow the composition of transformations for your letter:
a) Use graph paper and draw the 4 quadrants of the
...
adrants of the coordinate plane
b) Reflect in the line: y = 8
c) Translate: (x, y) (x + 13, y+4)
d) Reflect in the line: y = -x + 3
e) Rotate: 90°
2) Color each image a different color and outline it in black.
3) Color each quadrant in a different color (not the same color as the image or images on the letter in it).
Use a mapping chart to describe each transformation. Use of notation is important. For example, T2,3 or ry=1, or R90° must be used in the mapping chart.
Write a paragraph explaining who M. C. Escher and what contribution he made to art using tessellation. Define tessellation.
View More
4.ou are a consultant who works for the Diligent Consulting Group. In this Case, you are engaged on a consulting
...
consulting basis by Loving Organic Foods. In order to get a better idea of what might have motivated customers’ buying habits you are asked to analyze the ages of the customers who have purchased organic foods over the past 3 months. Past research done by the Diligent Consulting Group has shown that different age groups buy certain products for different reasons. Loving Organic Foods has sent a survey to 200 customers who have previously purchased organic foods, and 124 customers have responded. The survey includes age data of past customers who purchased organic foods in the previous quarter.
Case Assignment
Using Excel, create a frequency distribution (histogram) of the age data that was captured from the survey. You should consider the width of the age categories (e.g., 5 years, 10 years, or other). That is, which age category grouping provides the most useful information? Once you have created this histogram, determine the mean, median, and mode.
After you have reviewed the data, write a report to your boss that briefly describes the results that you obtained. Make a recommendation on how this data might be used for marketing purposes. Be sure to conduct adequate research on organic foods industry, organic market analysis, and healthy food industry using IBISWorld database or other databases such as Business Source Complete (EBSCO) and Business Source Complete - Business Searching Interface in our online library. Provide a brief description on the industry background and the consumer changing attitudes and behavior toward healthy lifestyles. Also identify the customer demographics of organic food industry and explain how the customers of Loving Organic Foods are different from this target market.
Data: Download the Excel-based data file with the age data of the 124 customers: Data chart for BUS520 Module 1 Case. Use these data in Excel to create your histogram.
Assignment Expectations
Excel Analysis
Complete analysis in Excel using the Histogram function. Please watch the following video which covers how to create a histogram in Excel: https://www.youtube.com/watch?v=GL91GrVf3EY
If you are not so familiar with Excel, refer to the following link on Excel training videos: https://support.office.com/en-us/article/Excel-training-9bc05390-e94c-46af-a5b3-d7c22f6990bb?ui=en-US&rs=en-US&ad=US
Check the professional market research reports from the IBISWorld database to conduct the industry analysis. IBISWorld can be accessed in the Trident Online Library.
IBISWorld Overview (n.d.). IBISWorld, Inc., New York, NY.
IBISWorld Forecast (n.d.). IBISWorld, Inc., New York, NY.
IBISWorld Data and Sources (n.d.). IBISWorld, Inc., New York, NY.
IBISWorld Navigation Tips (n.d.). IBISWorld, Inc., New York, NY.
Written Report
Length requirements: 4–5 pages minimum (not including Cover and Reference pages). NOTE: You must submit 4–5 pages of written discussion and analysis. This means that you should avoid use of tables and charts as “space fillers.”
Provide a brief introduction to/background of the problem.
Provide a brief description of organic food industry and target market characteristics such as their demographics, lifestyles and shopping behaviors.
Provide a written analysis that supports your Histogram age groups (bins).
Based on your analysis of the histogram data, provide complete and meaningful recommendations as the data relates to Loving Organic Foods’s marketing strategy.
Write clearly, simply, and logically. Use double-spaced, black Verdana or Times Roman font in 12 pt. type size.
Have an introduction at the beginning to introduce the topics and use keywords as headings to organize the report.
Avoid redundancy and general statements such as "All organizations exist to make a profit." Make every sentence count.
Paraphrase the facts using your own words and ideas, employing quotes sparingly. Quotes, if absolutely necessary, should rarely exceed five words.
Upload both your written report and Excel file to the case 1 Dropbox.
View More
5.A student wants to enroll in a seminar so he/she submits her name and student number to the registrar; therefore
...
r; therefore she may be validated to become an eligible student at the university. Once the registrar verifies the student, the student indicates the seminar she wants to enroll in from the list of those available. The registrar validates the student is eligible to enroll in the seminar and that the seminar fits the student’s schedule. The registrar calculates the fees for the seminar– based on the fee published in the course catalog, applicable student fees and taxes, and informs the student. The registrar verifies with the student that she still wants to enroll in the seminar, and then enrolls the student. The registrar adds the appropriate fees to the student’s bill and provides the student with a confirmation that she is enrolled.
Instructions:
Using a UML tool of your choice, create a Use Case model for Enroll in a seminar. Your model should include one or more opportunities for reuse.
Based on the model you developed, create a UI flow diagram that extends your Use Case model showing the UIs (screens and/or reports) used to enroll in a seminar. An UML Activity diagram can be used for the UI flow diagram. Also, please fill in the provided UI flow chart to describe the UIs in your flow diagram.
View More
6.Effective Consumer Relations
You are working as a manager in a local hospital. You received some patient satisfaction survey data, and
...
patient satisfaction survey data, and you were asked to review the data and consider the impact on consumer relations.
Review the Patient Satisfaction Survey below:
Hospital Patient Satisfaction Survey
Patient Satisfaction Indicator
Current Performance
Goal
Hospital cleanliness
8.2
> = 9.2
Overall patient satisfaction with doctors
7.6
> = 9.2
Average patient wait time
13 minutes
< = 15 minutes
Overall patient satisfaction with hospital
9.7
> = 9.2
Complete the following prompts based on the chart provided above.
Patient satisfaction strength
Identify a patient satisfaction indicator that could be considered a strength for the hospital based on its current performance and the hospital’s goal.
Identify a strategy the hospital could use so that this indicator remains a strength in patient satisfaction.
Patient satisfaction weakness
Identify a patient satisfaction indicator that could be considered a weakness for the hospital based on its current performance and the hospital’s goal.
Identify a strategy the hospital could use so that this indicator does not remain a weakness in patient satisfaction.
[Insert Response]
Patient satisfaction opportunity
Identify a patient satisfaction indicator that could be considered an opportunity for the hospital based on its current performance and the hospital’s goal.
Identify a strategy the hospital could use so that this indicator could transform into a strength in patient satisfaction.
[Insert Response]
Explain the importance of effective consumer relations in the health care industry.
Consider the role data (e.g., surveys) plays in effective consumer relations.
Consider the role communication plays in effective consumer relations.
[Insert Response]
Cite any peer-reviewed, scholarly, or similar references used to support your assignment
[Insert references used]
Click the Assignment Files tab to submit your assignment.
View More