Pseudocode and flowchart Write a program that ask the user to enter his/her year level, and display one of the following output: "Freshman", Sophomore", "Junior", "Senior", "N/A" note: Freshman=1 Sophomore=2 Junior 3 Senior=4
Q: The Nimble Fingers Typing School assigns grades based on words typed per minute, as shown in Figure…
A: Required:
Q: Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a commission of 5% of…
A: Following is the python program:locale module is imported to get currency formatting.Program prompts…
Q: Write a program that asks the user to enter a number of seconds. -There are 60 seconds in a minute.…
A: The below given Java program will obey the following rubrics: Importing required package. Defining…
Q: Speeding Violation Calc Design a program that calculates and displays the number of miles per hour…
A: Actually, algorithm is an step by step process.
Q: C# (Temperature Conversions) Write a temperature conversion program that converts from Fahrenheit…
A: Program description: The temperature conversion C sharp windows application program that allows…
Q: Introduction to Python programming
A: # prompt the user to enter the number of packages purchased. number = int(input("Enter the number of…
Q: Malcolm Movers charges a base rate of $200 per move plus $150 per hour and $2 per mile. Write a…
A: Answer :
Q: Writhe the pseudocode and draw the flowchart for a program that asks a user for 2 numbers, numl and…
A: Accept input from user and store it in num1 Accept input from user and store it in num2 if(num2!=0)…
Q: (Geometry: great circle distance) The great circle distance is the distance between two points on…
A: The Java program is written where it takes the latitude and longitude degrees from the user for the…
Q: Running on a particular treadmill you burn 3.9 calories per minute. Design a program that uses a…
A: //CODE #include<iostream> using namespace std; int main() { int i; // Declaration of…
Q: Vrite the statement Write the statement Write the statement that output #2. that output #3. that…
A: Note: Since you have not provided the language to write the code. So I am using java language to…
Q: tery The program prompts the user to enter a three-digit number and determines whether the user wins…
A: #code.py from random import randint lottery = str(randint(100, 999)) count = 0 user = input("enter a…
Q: Assuming there are no deposits other than the original investment, the balance in a saving account…
A: Since you have not mentioned programing language I'm doing this in Python.
Q: Programming Language: PHP 1. Create a program using if, ifelse, else statement that will ask the…
A: Programming Language: PHP 1. Create a program or code using an if, if-else, else statement that…
Q: (Find the lowest price) Write a program that prompts the user to enter the number of items and each…
A: C++ Program for above : #include <iostream> using namespace std; int main() { //get the…
Q: PART A: Selection Statement You are required to write a program to compute the area of square (area…
A:
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Algorithm: 1. Input unit sold 2. Check if quantity is not negative. 3. Check the condition for…
Q: Programming Language: PHP 1. Create a program using if, ifelse, else statement that will ask the…
A: 1. Write a PHP program that takes two numbers as input and display the result using the following…
Q: No function in your program is allowed to be longer than 10 statements. • Be sure to include the…
A: The python code
Q: Java Script Questions from number 2 to number 4
A: (2) Complete program: <! DOCTYPE html> <html> <body> <p>Question…
Q: 11. Circuit Board Profit An electronics company sells circuit boards at a 40 percent profit. If you…
A: Java program to find the profit on the circuit board. The profit is 40 percent on selling a circuit…
Q: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are 10…
A: Given: A bag of cookies holds 40 cookies. The calorie information on the bag claims that there are…
Q: A customer in a store is purchasing five items. Design a program that asks for the price of each…
A: Note: since programming language is not mentioned we are providing solution in c++ . please repost…
Q: (Check the speed) Write a program that prompts the user to enter the speed of a vehicle. If speed is…
A: C++ program is given below:
Q: A toll road is a road that requires a fee to be paid when driven on. Sometimes, the fee charged can…
A: Program description: The java program, TollRoadProgram.java that prompts the user to enter the type…
Q: (Financials: currency exchange) Write a program that prompts the user to enter the exchange rate…
A: EXPLANATION: - The integer variables are declared for reading the amount and the user choice for…
Q: Write pseudocode and draw the flowchart to read the age of a user. You should then display the…
A: Pseudocode is the simple language explanation of the steps of algorithms. Flow chart is the…
Q: Programming Language: PHP 1. Create a program using if, ifelse, else statement that will ask the…
A: In the question 2, it's asked to get an integer as input, and then for the first case it's asking…
Q: (Find the number of days in a month) Write a program that prompts the user to enter the month and…
A: Actually, program is a executable software that runs on a computer.
Q: 3) write a program that will calculate the total sales amount including the amount for state and…
A: Given:
Q: Number 3: Write a pseudocode and draw a flowchart to read age of a user. You should display the…
A: Step 1:- Note:-I am writing the program in c++ programming language. The flowchart is a graphical…
Q: Selling a new vehicle pays a salesperson $1500. Selling a used vehicle pays a commission of 5% of…
A: To perform this without loop.This program used repeatative input asked by user.Caclulation also used…
Q: write a program that asks the user to enter the number of packages purchased. the program should…
A: Initially, the package is of $99 If you buy less than 10, no discount If you buy 10-19, the discount…
Q: Develop a program working as a soda vending machine. The program should show the product menu with…
A: #include <iostream> using namespace std; int main() { // Define the necessary int variales int…
Q: [Question Description] Write a program that reads an unspecified number of integers, computes the…
A:
Q: (Health application: BMI) Body Mass Index (BMI) is a measure of health on weight. It can be…
A: Code import java.util.Scanner;public class test{ public static void main(String args[]){…
Q: INSTRUCTIONS: Create a program that converts the PRICE CODE to PRICE VALUE. CODE C M U E R S VALUE 1…
A: We need to write a C++ program for the given scenario.
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: public class SoftwareSales { public static void main( String[] args ) { Scanner…
Q: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking your…
A: Given: Body mass index (BMI) is a measure of health based on weight. It can be calculated by taking…
Q: XYZ Company, LLC uses a program to manage the information of their employees. The program gets the…
A: Python Code for above : #get details from user name = input("Name of Employee: ") hours =…
Q: [Question Description] Enter any number of integers with three digits and determine whether they are…
A: Below is the complete solution with explanation in detail for the given question about palindrome.…
Q: Design a program that allows a user to enter any quantity of numbers until a negative number is…
A: The Pseudocode and Program both are given below:
Q: Software Šales A software company sells a package that retails for $99. Quantity discounts are given…
A:
Q: Flowchart needed not pseudocode
A: Flowchart of given question...
Q: One acre of land is equivalent to 43,560 square feet. Design a program that asks the user to enter…
A: Input the value of area in sqft Convert the area in sqft to area in acres area in acres…
Q: A car’s miles-per-gallon (MPG) can be calculated with the following formula:MPG 5 Miles driven…
A: C++ program is given below
Q: 2. The following table contains earthquake magnitude ranges on the Richter scale and their…
A: The programming methodology is given by: Including header files Main function Declaring magnitude…
Q: flowcharts Task 1: Find the even multiples of any number chosen by the user in a given range – the…
A: the question asks given a number and a range we need to print the multiple of that numbers which are…
Q: Software Sales A software company sells a package that retails for $99. Quantity discounts are given…
A: Since you have not mentioned the programming language, we have provided the code in Python language.
Q: (Slope of a line) Write a program that prompts the user to enter the coordinates of two points (x1,…
A: Here is the Python program: x1 = float(input("Enter the x-coordinate for point1: "))y1 =…
Max Function
Statistical function is of many categories. One of them is a MAX function. The MAX function returns the largest value from the list of arguments passed to it. MAX function always ignores the empty cells when performing the calculation.
Power Function
A power function is a type of single-term function. Its definition states that it is a variable containing a base value raised to a constant value acting as an exponent. This variable may also have a coefficient. For instance, the area of a circle can be given as:
Pseudocode and flowchart
Write a
note:
Freshman=1
Sophomore=2
Junior 3
Senior=4
Step by step
Solved in 2 steps with 1 images
- Time CalculatorWrite a program that asks the user to enter a number of seconds.-There are 60 seconds in a minute. If the number of seconds entered by the user is greater than or equal to 60, the program should display the number of minutes and leftover seconds in that many seconds.-There are 3,600 seconds in an hour. If the number of seconds entered by the user is greater than or equal to 3,600, the program should display the number of hours, minutes, and leftover seconds in that many seconds.-There are 86,400 seconds in a day. If the number of seconds entered by the user is greater than or equal to 86,400, the program should display the number of days, hours, minutes, and leftover seconds in that many seconds.Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fat grams x 9. Make sure that the number of calories entered is not greater than fat grams x 9. Once corrected data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: Percentage of calories from fat = (Fat grams x 9) / calories ANSWER IN PSEUDOCODE USE ONLY WHILE LOOPS DO NOT USE MODULES/FUNCTIONSFat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fat grams x 9. Make sure that the number of calories entered is not greater than fat grams x 9. Once corrected data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: Percentage of calories from fat = (Fat grams x 9) / calories ANSWER IN PSEUDOCODE
- Problem definition: A college wants to know how well its students did on an exam. The following program summarizes the results. The program asks a user to enter the results pass (1) or fail (2) for 10 students. It displays the number of passed and the number of failed. It displays a message "Raise error" if the number of passes is more than 8 You are asked to identify statement with syntax errors by selecting them as wrong and the correct statements as rightA Charge Account Statement Write a program to prepare the monthly charge account statement for a customer of CS CARD International, a credit card company. The program should take as input the previous balance on the account and the total amount of additional charges during the month. The program should then compute the interest for the month, the total new balance (the previous balance plus additional charges plus interest), and the minimum payment due. Assume the interest is 0 if the previous balance was 0 but if the previous balance was greater than 0 the interest is 2% of the total owed (previous balance plus additional charges). Assume the minimum payment is as follows: new balance for a new balance less than $50 $50.00 for a new balance between $50 and $300 (inclusive) 20% of the new balance for a new balance over $300 So if the new balance is $38.00 then the person must pay the whole $38.00; if the balance is $128 then the person must pay $50; if the balance is $350 the minimum…An online book club awards points to its customers based on the number of books purchased each month. Points are awarded as follows: Books Purchased Points Earned 1 5 2 15 3 30 4 or more 60 Write a program that asks the user to enter the number of books purchased this month and then displays the number of points awarded.
- Hide Assignment Information Instructions The civil engineering department has asked you to write a program to compare three different designs of water towers shown in the diagrams below. The water towers are a cylinder topped with a half sphere. The engineers want to find the design that has the highest volume. The radius of the sphere and the radius and height of the cylinder for each of the three projects will need to be input by the user. The formula for the volume of a Sphere is:V = 4/3 π r3The formula for the volume of a Cylinder is:V = π r2 h Write two functions that will calculate the volume of a sphere and a cylinder respectively. Then, use these functions to write a program that will find the design with the largest volume. Hint: Remember that the tower only consists of a half sphere.Odd Even Number Problem Description Even Numbers are integers that are exactly divisible by 2, whereas an odd number cannot be exactly divided by 2. Example of even numbers are 2,4,6,8 and odd numbers are 1, 3, 5, 7, 9. Input The first line input contains an integer, which determines the number of test cases. Each of following lines represent sequence of integers that ends with 0. 2 34 1 8 5 22 0 10 7 16 -2 0 Output For each test case, the output will present the size of oddQueue and evenQueue following with the integers of odd and even numbers. oddQueue 2: 1 5 evenQueue 3: 34 8 22 oddQueue 1: 7 evenQueue 3: 10 16 -2 ** Your task is to write a program that will read the input and identify whether it is an odd number or even number. /******************************************************************************* Compilation: javac Queue.java** The Queue class represents a first-in-first-out (FIFO) queue of generic items.* It supports the usual enqueue and dequeue…3. Fat Gram Calculator Design a program that asks for the number of fat grams and calories in a food item. Validate the input as follows: • Make sure the number of fat grams and calories is not less than 0. According to nutritional formulas, the number of calories cannot exceed fat grams X 9. Make sure that the number of calories entered is not greater than fat grams × 9. Once correct data has been entered, the program should calculate and display the percentage of calories that come from fat. Use the following formula: Percentage of calories from fat = (Fat grams × 9) ÷ Calories Some nutritionists classify a food as "low fat" if less than 30 percent of its calories come from fat. If the results of this formula are less than 0.3, the program should display a message indicating the food is low in fat.
- Retail price calculator Write a program that asks the user to enter an item’s wholesale cost and its markup percentage. It should then display the item’s retail price. For example: • If an item’s wholesale cost is 5.00 and its markup percentage is 100 percent, then the item’s retail price is 10.00.• If an item’s wholesale cost is 5.00 and its markup percentage is 50 percent, then the item’s retail price is 7.50. The program should have a method named calculateRetail that receives the wholesale cost and the markup percentage as arguments and returns the retail price of the item.**using C# and Visual Studio design a program to satisfy the below problem** Create an application that generates a random number in the range of 1 through 100 and asks the user to guess what the number is. If the user’s guess is higher than the random number, the program should display “Too high, try again.” If the user’s guess is lower than the random number, the program should display “Too low, try again.” If the user guesses the number, the application should congratulate the user and then generate a new random number so the game can start over. Optional Enhancement: Enhance the game so it keeps count of the number of guesses that the user makes. When the user correctly guesses the random number, the program should display the number of guesses.Box Office: A movie theater only keeps a percentage (20%) of the revenue earned from ticket sales. The remainder goes to the movie distributor. Write a program that calculates a theater’s gross and net box office profit for a night. The program should ask for the name of the movie, and how many adult and child tickets were sold. (The price of an adult ticket is $10.00 and a child’s ticket is $6.00.) Input: the name of the movie, number of adult tickets sold, number of child tickets sold Output: as specified below Object: cin, cout, getline, format output Note: 1. Movie names contain spaces 2, the report is aligned. 3. The decimal number is displayed with 2 decimal places.