One Computer Science program uses the following rules tor CS course placement: 1. if the CS AP score is 4 or higher, a student is placed to CS 221; 2. If the CS AP score is less than 4 (0 means no AP) and the ACT math is 24 or higher, a studenet is placed to CS 180; 3. If the CS AP score is less than 4 and the ACT math is lower than 24, a student is placed to CS 170. Write a java program that can print the appropriate courses for each of three cases. A sample output is the following: 5 25 CS221 3 25 CS180 0 20 CS170
Q: You have just started a sales job in a department store. Your pay consists of a base salary and a…
A: Program for the given sales problem is given below: we are using java as the language and using…
Q: Programming Problem 1. Rock, Paper, Scissors This is your traditional rock-paper-scissors game,…
A: Lets see the solution in the next steps
Q: PYTHON PROGRAMMING A retail company assigns a $5000 store bonus if monthly sales are more than…
A: Introduction PYTHON PROGRAMMING A retail company assigns a $5000 store bonus if monthly sales are…
Q: Write a program to calculate the total final marks for a subject. There are four assessment types…
A: Here is the c program of above problem. See below steps for code.
Q: hat will compute the students average • The user will input the following: Name Math …
A: HI, Since the programming language is not mentioned i used python
Q: You have just started a sales job in a department store. Your pay consists of a base salary and a…
A: Program for the given problem is define below , in this i use th java as a language and java.awt for…
Q: A retail company assigns a $5000 store bonus if monthly sales are more than $100,000; otherwise a…
A: Introduction: We need to Complete the missing lines in the given Module 2 according to the…
Q: Write a program that can be used to assign seats for a commercial airplane. The airplane has 13…
A: NOTE: - Below code is implemented in c++. PROGRAM EXPLANATION: - The airplane has 13 rows with 6…
Q: Question: Party budget planning - complex Prompt the user to enter their current budget and the…
A: You are ordering food from a restaurant that has two menu items: Tacos $4 Empanadas $3
Q: Write a Program to create 10 object of student which contains given information e.g. name, roll…
A: Required: Write a Program to create 10 object of student which contains given information e.g. name,…
Q: A BOOKSTORE SELLS BOOKS UNDER THE FOLLOWING CONDITIONS: a. IF THE CLIENT IS TYPE 1, 30% IS…
A: Program: //header file #include <iostream> using namespace std; //main function int main()…
Q: use visual basic Depreciation to a Salvage Value of 0 . For tax purposes an item may be depreciated…
A: Design
Q: def calculate_growth_cycle(plant_name): if(plant_name == "strawberry"): print("### The…
A: As given, I need to write a Python program according to the given requirements. What's wrong with…
Q: In a course with 2 midterms and 1 final exam, you will write a code that determines the remainder…
A: #include <stdio.h> int main(){ float first, second, final; float avg; printf("\n…
Q: Question 1[15 pts]: Write a java program to help an employee calculate the price of a product after…
A: this is a simple logical coding question in java the complete code and its output is attached in the…
Q: Analyze the following code: public class Test { public static void main (String [] args) { int i =…
A: Given:-
Q: Computer Science a java program that calculates the followitng discoints on items more than 50000…
A: PROGRAM CODE: import java.util.Scanner; public class Main{ public static void main(String…
Q: Enter the number of days: Day Cents $ 0.01 2 $ 0.02 3 $ 0.04 4 $ 0.08 $ 0.16 $ 0.32 $ 0.64 $ 1.28 $…
A: Find Your Code Below
Q: A code in c++ or python A program that asks you to enter the name of a movie or series, and then…
A: #using python#asking user to enter movie or series namename = input('Enter name of a…
Q: An Auto Insurance Program Example - Write a program to determine the cost of an automobile insurance…
A: Program approach: Import Scanner package for input. Create a class. Create the main method. Create…
Q: If you are flying with an economy ticket, there is a possibility that you may get upgraded to…
A: Decision table is a method of describing the logical relationship as a visual representation ( in…
Q: Question: Party budget planning - complex Prompt the user to enter their current budget and the…
A: Calculate and print out all the options of meals where the budget is used entirely(where possible)…
Q: GRADED ACTIVITY #5 (M7.2): DECISION CONTROL STRUCTURE (SWITCH) PROBLEM Instruction: The areas of the…
A: Program code: import java.util.Scanner; public class Main{ public static void main(String[] args) {…
Q: 2. Each of the following programs contains exactly one syntax error. Find the error and correct it.…
A: Task :- Find out the errors in given programs.
Q: Read the following short scenario, then answer the question that follows: Jane wants to become a…
A:
Q: A flight company computes the ticket price of a travel depending on the reservation rate and the…
A: The requested Java program code has been provided in the next step using if-else statements.
Q: e a simple payroll program that will display employee’s information. Refer to the UML Class Diagram…
A: Q: Code the given problem
Q: So if the new balance is $38.00 then the person must pay the whole $38.00; if the balance is S128…
A: CODE: JAVA PROGRAMMING LANGUAGE import java.util.*;import java.text.*;public class CreditCardBill{…
Q: C++ A dice game called "21" It is a variation on BlackJack where one player plays against the…
A: Write a C++ program that will find the output according to the conditions given in the question and…
Q: In a chemistry class there are ten students and each the students has taken 5 tests.The total mark…
A: #include <iostream>using namespace std;/* Student class*/class Student{ public:…
Q: ISSUE NEEDED TO BE SOLVED: I attached the error codes that keep presenting themselves with the code…
A: Below is the explanation:
Q: Code a game of sudoku in C++ where the user needs to guess the missing numbers in the grid. The grid…
A: The code implementation is given in the below steps.
Q: Jane has opened a new fitness center with charges of 2500 per month so the cost to become a member…
A: Note : I have added the output screenshot. Also with total money made, the code prints members and…
Q: program that uses diferent operators; • Use the methods of the Math class. tructions: 1. Create a…
A: here is your Program that uses different operators and uses the methods of the math class.
Q: Following code in C using random Name Reg no and highschool name Use switch case in C language to…
A: The program is written in C #include <stdio.h>#include<stdlib.h>int main(){ int…
Q: Python code for this scenario: There is a line of tourist trying to book a room for their vacation.…
A: Algorithm: Start Display menu to the user Ask user to enter number of guests 'n' Ask user to enter…
Q: there are three seating categories at a stadium. for a softball game, class A seats are $30, Class B…
A: Since no programming language is mentioned, I am using python. Code: print("Enter number of tickets…
Q: Q # 3. Implement a Tour Planner and Budget Calculator for Holidays. Program will ask the user to…
A: Include the Header files In main function Declare the variables estexpense, hotelexpense, person,…
Q: Each of the following programs contains exactly one syntax error. Find the error and correct it.…
A: Below are the errors for all the three programs:
Q: Bob takes medication three times a day. In the morning at 8:00, in the afternoon at 13:00, and in…
A: Dear Student, As no programming language is mentioned so I am assuming the programming language to…
Q: Python Programming. Write a program that computes how much a customer has to pay after purchasing…
A: According to the information given:- We have to follow the instruction mentioned to get the desired…
Q: You have just started a sales job in a department store. Your pay consists of a base salary and a…
A: Program for the given problem is define below , in this i use th java as a language and java.awt for…
Q: Create a C++ Program that will identify the Discount Rate of a shopper based on issued loyalty card.…
A: The question asks to program a c++ code such that it will show the discounted price based on the…
Q: rint a ticket indicating the person's seat number and whether it’s in the first class or economy…
A: The below program is a code for railway reservation(seat selection) for users. It has features of…
Q: Subject: programming language : c++ Question : Jane has opened a new fitness center with charges…
A: I have added the output screenshot. Also with total money made, the code prints members and their…
Q: Jane has opened a new fitness center with charges of 2500 per month so the cost to become a member…
A: Program: //include the required header files #include <iostream> #include <string>…
Q: 1. Write a program to play rock-paper-scissors. The program should let the user determine whether it…
A: from random import randint #create a list of play optionst = ["Rock", "Paper", "Scissors"] #assign a…
Q: Problem: A company wants a program that will calculate the weekly paycheck for an employee based on…
A: According to Question we need to provide : 1. Pseudo-code2. Flowchart3. Python Code
Q: Consider a vending machine that offers the following options: [1] Get gum [2] Get chocolate [3]…
A: Objective: An application should be built considering the functionalities of a vending machine. It…
Q: A salesperson gets a yearly bonus based on a commission from collections of sales and review from…
A: Declare a structure of Sales Executive record called SalesExecutive typedef struct Sales { char…
Trending now
This is a popular solution!
Step by step
Solved in 3 steps with 3 images
- Only correct answer will be appreciated else downvoted.You can graduate only if you have completed the requirements of your major and you do not owe money to the university and you do not have an overdue library book. Express your answer in terms of g: “You can graduate,” m: “You owe money to the university,” r: “You have completed the requirements of your major,” and b: “You have an overdue library book.”A part of the eligibility criteria is summarized below: • Weight: You must weigh at least 110 lbs to be eligible for blood donation for your own safety. • Age: You must be at least 17 years old to donate to the general blood supply • Blood Pressure: Acceptable as long as your blood pressure is below 180 and more than 90 systolic (first number) and below 100 and more than 50 diastolic (second number) at the time of donation. • Pregnancy: Persons who are pregnant are not eligible to donate. Wait 6 weeks after giving birth. • Antibiotics: A donor with an acute infection can not donate. Acceptable after finishing oral antibiotics for an infection (bacterial or viral). • Ebola Virus: You are not eligible to donate if you have ever had Ebola virus infection or disease Question 1: Draw a flowchart to check whether the blood donor is eligible or not, using the eligibility criteria above Question 2: Write the python code to ask the user to enter the age, weight, and blood pressure and…
- Draw an activity diagram Student Assistance Fund (SAF) authorization has a number of steps in its approval process. A SAF authorization form is used in most universities to approve funding for students to aid their studies. Suppose a student fills out a blank form and sends it to his or her departmental chairperson for a signature. If the amount of funds requested by the student is small (under Tk. 10,000), then the chairperson signs the form and routes it to accounts payable to be input into the accounting system. The system cuts a check that is sent to the student for the right amount, and after the check is cashed, the form is filed away with the canceled check. If the check is not cashed within 30 days, the form expires. When the amount of the requested fund is large (over Tk. 10,000), the chairperson signs the form and sends it to the chief financial officer along with a paragraph explaining the reason for the grant, and the chief financial officer will sign the form and pass it…Description Body mass index (BMI) is a number calculated from a person’s weight and height.According to the Centers for Disease Control and Prevention, the BMI is a fairlyreliable indicator of body fatness for most people. BMI does not measure body fatdirectly, but research has shown that BMI correlates to direct measures of body fat, such as underwater weighing and dual-energy X-ray absorptiometry. The formula for BMI is Weight/Height2 Where weight is in kilograms and height is in meters. Write a program that prompts for metric weight and height and outputs the BMI. For example, an execution could look like this:Please enter weight in kilograms: 50Please enter height in meters: 1.58BMI is: 20.0288415318Problem Statement: A famous product photographer Xavier is in high demand and is being approached by various companies to get their products photographed. Xavier does all of this product shoots at his studio and wants to make sure that he maximizes his returns by covering as many photoshoots in a day as possible. For a product shoot to be conducted, the product first has to be staged and then photographed. He has a team who stages the products and he does the photoshoots. Depending on the product, it takes different amounts of time to stage and varied time to complete the shoot. His team can stage another product in another part of the studio while Xavier is busy with a photoshoot of a previously staged product. Assuming that his team can work on only one product at a time before they move to staging another and Xavier also finishes one product photoshoot before moving to the next, you are expected to help Xavier make best use of his team and his time by deciding the order in which the…
- In the US Higher Education sector, a degree is classified using a Grade Point Average (GPA). The grades ‘A’, ‘B’, ‘C’, ‘D’ or ‘F’ are called academic grades. Each ‘A’ is worth 4 points, each ‘B’ is worth 3 points, each ‘C’ is worth 2 points, each ‘D’ is worth 1 point and each ‘F’ is worth 0 points. The GPA is found by calculating the number of points and then dividing by the number of academic grades. A student may also have a non-academic grade of ‘W’ (for withdrew) which is not counted at all in the calculation. You can assume that the student will have at least one academic grade in their list of grades. There are many ways of calculating a GPA from a list of grades, but you must follow the algorithm given by this top-level decomposition: > Find GPA. >> Input a list of academic and non-academic grades. >> Create a new list that consists of the number of points for each academic grade in the input list. >> Add up the values in the new list and divide by the…Draw a statechart diagram based on the following hints: A course seption can be either Inactive (if the semester did not start) or Active (once the semesler started), The gelion would then become Inactive again at the and of the semester, An active section will become Empty if no students are enrolled in it, Not-Empty if less than 30 students are enrolled in it, and / ul if 30 students are enrolled in it. Note: Use your judgement for how to represent the initial state, final state, and the five states mentioned above and provide clear representation of the transitions (a minimum ef 5) between the states along with the events and actions. Also make sure to use guards (at least once) when necessary.Computer Science A pharmaceutical company writes contracts with its chemical suppliers that ensure each container has the proper amount of chemical within some allowable range. For example, a one liter container is permitted to contain between 997 cm3 and 1,003 cm3. Design a test suite for testing the company’s quality control using a liter container of a different amount of chemical for each different test case.
- PROBLEM – FORMULA FOR SUCCESS Back in your elementary days you may have seen posters which say that if each letter of the alphabet had an ordinal number value (A = 1, B = 2, C = 3, and so on), then their words can be the sum of those letters which hold the formula for success. LUCK can only get you 47% while MONEY only gets you to 72%. KNOWLEDGE gets you to 96%, LEADERSHIP to 97%, and HARDWORK to 98%. But they say the greatest formula for success is ATTITUDE which gets you to 100%. Create a program that takes in a word and checks each letter to build up a sum similar to the one mentioned above. Input Format The only line of input will contain a string s which is the word to be checked letter by letter. The input will always be entered in uppercase letters Output Format The only line of output will be the sum of the word entered. Sample input / output LEADERSHIP 97 Explanation Since we treat each letter of the input as if it were a number, then we can treat the word as a sum of those…If a child has red hair, they inherited a certain From their parentsFria Lexa Santos, a Grade 11 HUMSS student, together with her groupmates, is currently working on a research paper for her Practical Research 1 class. She has thoroughly read and researched her topic. She gave a proper citation to the authors of the articles that she used. To Fria's dismay, her groupmates just relied on her to do the research, and on their part, they only copied the works of other authors. She poured out her frustration over her group mates and called their attention on Facebook. To finish the group's research and submit it on time, she included her members' copied articles in her research work. She was so relieved that her teacher accepted the output, and it was uploaded in their Facebook Social Learning Group; however, she felt uneasy and guilty about the output submitted. Jhanna Zia Delos Reyes is known in her school as a social butterfly. Everybody likes her, and she has a wide circle of friends. Most of her senior high school acquaintances are updated with her…