input hours_ppsuedo code
.docx
keyboard_arrow_up
School
Southern New Hampshire University *
*We aren’t endorsed by this school
Course
140
Subject
Computer Science
Date
Apr 3, 2024
Type
docx
Pages
4
Uploaded by SargentOkapi3461
1
3-3 Assignment: Introduction to Pseudocode and Flowcharts
Southern New Hampshire University
IT-140-X2309 Introduction to Scripting Professor Joshua Congrove
2
What input does the computer need?
The computer needs to know what input to place and where or how to put input or plug numbers or information into the program. I denoted ‘hours’ as my information going into my program representing the number of hours worked up to 40 hours. I placed ‘over_time’ as the hours equal to 41 but under 60. The other information that will be needed is what to do with all the information being given. For this assignment, we have
hours and rates. We need to designate any rules about the information given. I made a flow chart with yes or no answers. If the information is ‘yes’ then there are instructions for what the program needs to do with the information. If the information comes back with a ‘no’ then there are instructions on what to do with that information. If there are instances where the computer is not given the correct instructions the program will not work.
What steps does the program need to follow to process the input? What output should result? We need if/elif and else statements for this scenario for the program to come out with the correct solution. Also, when typing in the numbers make sure that the order of
Your preview ends here
Eager to read complete document? Join bartleby learn and gain access to the full version
- Access to all documents
- Unlimited textbook solutions
- 24/7 expert homework help
Related Questions
# Exercise 5: Your partner is asking you to go to eat.
# Use print statments to ask the questions and your inputs should nicely formated like the third Lesson
# They ask you what time you want to go, where you want to eat, and how you will be getting there.
# Make the conversation flow Like you were texting someone
# Example: What time do you want to eat?
# > 7:30pm
# Okay! 7:30pm, where?
# > Iron Age
# Gotcha, I booked us
# How are you going to get there?
# > I taking the car
# Sounds good! I'll see you then.
a table at Iron Age.
arrow_forward
please show all workings and how you arrived at your answers.
arrow_forward
#Python Program-related question. So need the answer in python expressions.
#Do not use the 'round' function. keep it simple
#use sep='' function when needed to close space between $ sign and amount
#Answer image of the program is attached which was answered by Bartleby but can't use it as we have not studied 'round' function yet.
COSC 1336 –Programming Fundamentals IProgram 4 – Decision StructuresThe owners of the Annan Supermarket would like to have a program that computes theweekly gross pay of their employees. The user will enter an employee’s ID number, thehourly rate of pay, and the number of hours worked for the week. In addition, AnnanSupermarkets would like the program to compute the employee’s net pay and overtimepay. Overtime hours, any hours over 40, are paid at 1.5 the regular hourly rate.Net pay is Gross minus deductions. Assume that deductions are made up of income tax(at 10.5% of gross if the gross exceeds $600.00) and a $25 parking charge.The output should look like…
arrow_forward
COSC 1336 – Programming Fundamentals IProgram 7 – Repetition Structures and Files
Python ProgrammingThe trustees of a small college are considering voting a pay raise for their faculty members. They want to grant a 7 percent raise for those earning more than $50,000.00, a 4 percent raise for those earning more than $60,000.00 and 5.5 percent raise for all others. However before doing so, they want to know how much this will cost. Write a program that will print the pay raise for each faculty member, the total amount of the raises, and the average of the raises. Also, print the total faculty payroll before and after the raise. Use the end of file as a sentinel value. The input data is available in program_7.pngDo NOT use any logical operator in the program. Run your program with the input file, program7.txt
Important Notes:
Follow the requirements.
Needs percentage applied and Raise amount of each salary displayed.
Total amount of Salary and Total of Raised salary should be displayed…
arrow_forward
COSC 1336 – Programming Fundamentals IProgram 7 – Repetition Structures and Files
Python ProgrammingThe trustees of a small college are considering voting a pay raise for their faculty members. They want to grant a 7 percent raise for those earning more than $50,000.00, a 4 percent raise for those earning more than $60,000.00 and 5.5 percent raise for all others. However before doing so, they want to know how much this will cost. Write a program that will print the pay raise for each faculty member, the total amount of the raises, and the average of the raises. Also, print the total faculty payroll before and after the raise. Use the end of file as a sentinel value. The input data is available in program_7.pngDo NOT use any logical operator in the program. Run your program with the input file, program7.txt
Use sep='' , ',.2f' where needed.
arrow_forward
Top-Scorer
Code in C language
arrow_forward
Java
arrow_forward
DISCRETE STRUCTURES please help me answer this question I will give you a good rating Thank you!
arrow_forward
Only write it in python language
arrow_forward
Data Structure and Algorithms Laboratory question C++ language please solve asap
Pls send me solution fast within 20 min and i will rate instantly for sure
Solution must be in typed form
arrow_forward
JAVA LANGUAGE
Body Mass Index Version 2.0
by CodeChum Admin
Recall that according to the National Heart, Lung, and Blood Institute of the National Institutes of Health, body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. It is used to monitor one's health by determining whether one is underweight, overweight, has normal weight or is obese. It is computed based as follows (when using standard weight in pounds and height in inches):
BMI = 703 x (weight/(height2))
Furthermore, people with BMI scores that are less than 18.5 are said to be underweight. Those with scores between 18.5–24.9 (inclusive) are of normal weight. Those with scores between 25–29.9 (inclusive) are said to be overweight. And those with scores 30 or higher are obese.
Input
The input is composed of two positive integers representing the weight in pounds and the height in inches.
140·65
Output
A single line containing two values: the computed…
arrow_forward
2. First Even Road
by CodeChum Admin
I've been newly assigned as the city's road planner but this job seems tougher than I thought!
Almost all of the roads in this city are uneven. To fix these, I need to find an even road as a reference. Fortunately, the mayor told me that there's 1 even road somewhere and if I persevere, I could find it.
Could you please help me with this?
Instructions:
Your task is to ask the user for the number of rows and columns of a 2D array.
Then, print the row number of the row where the sum of all of its elements is even.
For this problem, it is guaranteed that there is one and only one such row.
Input
1. Number of rows
2. Number of columns
3. Elements of the 2D array
Output
Note that the row number starts at 0, not 1.
Enter·#·of·rows:·3
Enter·#·of·columns:·3
Enter·elements:
2·7·4
1·1·2
0·5·0
Even·row:·1
arrow_forward
2. First Even Road
by CodeChum Admin
I've been newly assigned as the city's road planner but this job seems tougher than I thought!
Almost all of the roads in this city are uneven. To fix these, I need to find an even road as a reference. Fortunately, the mayor told me that there's 1 even road somewhere and if I persevere, I could find it.
Could you please help me with this?
Instructions:
Your task is to ask the user for the number of rows and columns of a 2D array.
Then, print the row number of the row where the sum of all of its elements is even.
For this problem, it is guaranteed that there is one and only one such row.
Input
1. Number of rows
2. Number of columns
3. Elements of the 2D array
Output
Note that the row number starts at 0, not 1.
Enter # of rows: 3
Enter # of columns: 3
Enter elements:
2 7 4
1 1 2
0 5 0
Even row: 1
arrow_forward
2. First Even Road
by CodeChum Admin
I've been newly assigned as the city's road planner but this job seems tougher than I thought!
Almost all of the roads in this city are uneven. To fix these, I need to find an even road as a reference. Fortunately, the mayor told me that there's 1 even road somewhere and if I persevere, I could find it.
Could you please help me with this?
Instructions:
Your task is to ask the user for the number of rows and columns of a 2D array.
Then, print the row number of the row where the sum of all of its elements is even.
For this problem, it is guaranteed that there is one and only one such row.
Input
1. Number of rows
2. Number of columns
3. Elements of the 2D array
Output
Note that the row number starts at 0, not 1.
arrow_forward
Basic output with variables
This zyLab activity prepares a student for a full programming assignment. Warm up exercises are typically simpler and worth fewer points than a full programming assignment, and are well-suited for an in-person scheduled lab meeting or as self-practice.
A variable like user_num can store a value like an integer. Extend the given program as indicated.
Output the user's input.
Output the input squared and cubed. Hint: Compute squared as user_num * user_num.
Get a second user input into user_num2, and output the sum and product.
Note: This zyLab outputs a newline after each user-input prompt. For convenience in the examples below, the user's input value is shown on the next line, but such values don't actually appear as output when the program runs.
Enter integer: 4 You entered: 4 4 squared is 16 And 4 cubed is 64 !! Enter another integer: 5 4 + 5 is 9 4 * 5 is 20
arrow_forward
Create a function that receives 5 marks, regardless of the type of these marks.Calculate the average, calculate the marks above and below the average andprint the result on the screen.Create a function to calculate a square root for two real numbers and displayit.
Task Programming Language and Technologies▪ C# Programming Language.▪ Visual Studio 2019.
arrow_forward
Programming Assignment III
In this assignment you are required to be researching some sorting algorithms available and
providing some basic description on each algorithm you find. Your grade will be relative based on
the number of algorithms you can come up with and their respective specifications. I would be
happy with 10 sorting algorithms with clear description and analysis. The following is the
specification you need to provide on each algorithm:
1. The name of the algorithm
2. A small paragraph describing the operation of the algorithm
3. The code of the sorting function in the language you prefer (Java, C++, C, Python, C#,).
4. A testing code to run the sorting function using random arrays of sizes: 1000, 10000, 100000,
and 1000000 elements. The code should calculate the execution runtime in nanoseconds for each
array size sorted.
5. The theoretical O-Notation runtime of the algorithm
After providing the above description on the algorithms you find, you are requested to summarize…
arrow_forward
How do I solve this using swift code?
arrow_forward
C++ code please answer
arrow_forward
Determining the steps in a problem• using variables• using print()• following the assignment guidelines, including for file names and commentsWrite a program that will a. first create appropriately named variables and assign values to them for your:▪ first name ▪ last name▪ city▪ stateb. Then print out the following on two lines with appropriate identifying textNameLocation
arrow_forward
Vocabulary
Task (C language)
Solution given below. How to fix the error in the picture attached. txt file is not being created from this code
please also include how to create a txt file and where will it be saved in the computer
Natural language processing (NLP) is a field of artificial intelligence that seeks to develop the ability of a computer program to understand human language. Usually, the first step of an NLP system is to convert words into numeric codes. Thus, the system converts an input text into a sequence of numeric codes before any high-level analysis. This process is known as text preprocessing.
We can only perform text preprocessing if we have a vocabulary of words and their associated numeric codes. Your task is to create a vocabulary of unique words for a given text file and assign a different number from 1 to N to each unique word, with N being the total number of unique words. You must perform this assignment so that the first word in alphabetical order gets the…
arrow_forward
Detail solution please.
arrow_forward
PROJECT DESCRIPTION
1. You are required to complete a computing project that applies the concepts that we have
learned in this course. These are the MUST-HAVE programming concepts in your program:
o Menu
o Write to file / read from file
o Function
o Arrays
o Class (optional)
2. The theme is "LEARNING AID SYSTEM". Think any sort of system that can be used to
assist KOE students in e-learning. It can be maths problems or any engineering problems that
you have learned in class. You can pick any subtopic from your math/engineering courses.
Examples:
o Matrix solver
o Periodic Table - element searching
o Engineering encyclopaedia
o Projectile motion
Circuit solver (Mesh analysis/nodal analysis)
o Linear equations solver
o Area under the graph etc
3. You may include any features to make your program more interactive and practical. Example
for the features:
o Add, delete and search for user account
o Quiz style with score board
o Time limit
o User can input from keyboard or file
User can…
arrow_forward
Question 13 W
Directions: The question or incomplete statement below is followed by four suggested answers or completions. Select the one that is best in each case.
In the program below, y is a positive integer (e.g., 1, 2, 3, ..).
result
REPEAT 3 TIMES
REPEAT y TIMES
result result
1
What is the value of result after running the program?
A
y+ 3
3y
3y
arrow_forward
Please help step to step with R program with a final code for understanding thank you.
Automaker1.cvs:
Automaker NumberAmerican Honda 169Chrysler LLC 439Ford 440General Motors 551Nissan 467Toyota 332Other 516
Automaker2.cvs:
Category NumberAirbags and Seatbelts 201Body and Glass 182Brakes 163Fuel/Emission/Exhaust System 240Interior Electronics/Hardware 279Powertrain 1,148Steering 397Tires and Wheels 71
arrow_forward
How To Create mark Sheet For a Class In MS Excel using vba by following these steps
1) The following algorithm is designed to determine a grade for a course that consists of quizzes, homework and final exam. Write a program to determine final grade of USER DEFINED number ofstudents according to the steps described below. (The number of students should be entered by the user.)Step1: Input number of students and nameStep2: Input number of quizes and homeworksStep3: Input weighing factors for quizzes (WQ), homework (WH), and the final exam (WF) (e.g WQ 20%, WH 20% and WF 60%)Step4: Input quiz grades and determine an average quiz grade (AQ) Step5: Input homework grades and determine an average homework grade (AH) Step6: Input a final exam grade (FE) Step7: Determine the average grade AG according to Step8: Report name, quiz and homework grades and overall grade of each student (Report it on the Excel sheet as in the figure below, do not report it as a message box) Step9: Terminate…
arrow_forward
SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage
Related Questions
- # Exercise 5: Your partner is asking you to go to eat. # Use print statments to ask the questions and your inputs should nicely formated like the third Lesson # They ask you what time you want to go, where you want to eat, and how you will be getting there. # Make the conversation flow Like you were texting someone # Example: What time do you want to eat? # > 7:30pm # Okay! 7:30pm, where? # > Iron Age # Gotcha, I booked us # How are you going to get there? # > I taking the car # Sounds good! I'll see you then. a table at Iron Age.arrow_forwardplease show all workings and how you arrived at your answers.arrow_forward#Python Program-related question. So need the answer in python expressions. #Do not use the 'round' function. keep it simple #use sep='' function when needed to close space between $ sign and amount #Answer image of the program is attached which was answered by Bartleby but can't use it as we have not studied 'round' function yet. COSC 1336 –Programming Fundamentals IProgram 4 – Decision StructuresThe owners of the Annan Supermarket would like to have a program that computes theweekly gross pay of their employees. The user will enter an employee’s ID number, thehourly rate of pay, and the number of hours worked for the week. In addition, AnnanSupermarkets would like the program to compute the employee’s net pay and overtimepay. Overtime hours, any hours over 40, are paid at 1.5 the regular hourly rate.Net pay is Gross minus deductions. Assume that deductions are made up of income tax(at 10.5% of gross if the gross exceeds $600.00) and a $25 parking charge.The output should look like…arrow_forward
- COSC 1336 – Programming Fundamentals IProgram 7 – Repetition Structures and Files Python ProgrammingThe trustees of a small college are considering voting a pay raise for their faculty members. They want to grant a 7 percent raise for those earning more than $50,000.00, a 4 percent raise for those earning more than $60,000.00 and 5.5 percent raise for all others. However before doing so, they want to know how much this will cost. Write a program that will print the pay raise for each faculty member, the total amount of the raises, and the average of the raises. Also, print the total faculty payroll before and after the raise. Use the end of file as a sentinel value. The input data is available in program_7.pngDo NOT use any logical operator in the program. Run your program with the input file, program7.txt Important Notes: Follow the requirements. Needs percentage applied and Raise amount of each salary displayed. Total amount of Salary and Total of Raised salary should be displayed…arrow_forwardCOSC 1336 – Programming Fundamentals IProgram 7 – Repetition Structures and Files Python ProgrammingThe trustees of a small college are considering voting a pay raise for their faculty members. They want to grant a 7 percent raise for those earning more than $50,000.00, a 4 percent raise for those earning more than $60,000.00 and 5.5 percent raise for all others. However before doing so, they want to know how much this will cost. Write a program that will print the pay raise for each faculty member, the total amount of the raises, and the average of the raises. Also, print the total faculty payroll before and after the raise. Use the end of file as a sentinel value. The input data is available in program_7.pngDo NOT use any logical operator in the program. Run your program with the input file, program7.txt Use sep='' , ',.2f' where needed.arrow_forwardTop-Scorer Code in C languagearrow_forward
- Data Structure and Algorithms Laboratory question C++ language please solve asap Pls send me solution fast within 20 min and i will rate instantly for sure Solution must be in typed formarrow_forwardJAVA LANGUAGE Body Mass Index Version 2.0 by CodeChum Admin Recall that according to the National Heart, Lung, and Blood Institute of the National Institutes of Health, body mass index (BMI) is a measure of body fat based on height and weight that applies to adult men and women. It is used to monitor one's health by determining whether one is underweight, overweight, has normal weight or is obese. It is computed based as follows (when using standard weight in pounds and height in inches): BMI = 703 x (weight/(height2)) Furthermore, people with BMI scores that are less than 18.5 are said to be underweight. Those with scores between 18.5–24.9 (inclusive) are of normal weight. Those with scores between 25–29.9 (inclusive) are said to be overweight. And those with scores 30 or higher are obese. Input The input is composed of two positive integers representing the weight in pounds and the height in inches. 140·65 Output A single line containing two values: the computed…arrow_forward2. First Even Road by CodeChum Admin I've been newly assigned as the city's road planner but this job seems tougher than I thought! Almost all of the roads in this city are uneven. To fix these, I need to find an even road as a reference. Fortunately, the mayor told me that there's 1 even road somewhere and if I persevere, I could find it. Could you please help me with this? Instructions: Your task is to ask the user for the number of rows and columns of a 2D array. Then, print the row number of the row where the sum of all of its elements is even. For this problem, it is guaranteed that there is one and only one such row. Input 1. Number of rows 2. Number of columns 3. Elements of the 2D array Output Note that the row number starts at 0, not 1. Enter·#·of·rows:·3 Enter·#·of·columns:·3 Enter·elements: 2·7·4 1·1·2 0·5·0 Even·row:·1arrow_forward
arrow_back_ios
SEE MORE QUESTIONS
arrow_forward_ios
Recommended textbooks for you
- Programming Logic & Design ComprehensiveComputer ScienceISBN:9781337669405Author:FARRELLPublisher:Cengage
Programming Logic & Design Comprehensive
Computer Science
ISBN:9781337669405
Author:FARRELL
Publisher:Cengage