HW2: Write a computer program in Fortran 90 to read the day, then print the work condition as shown in table. Use format statement to print your result. • Use SELECT CASE Statement • Use IF Statement Day of week work condition 1.2.3.4.5 full day 6 half day 7 holiday
Q: 1. Convert 0111 0100 from binary to decimal Convert 1111 0110 from binary to decimal Convert 232…
A: As per our company guidelines we are supposed to answer only first 3 sub-parts. Kindly repost other…
Q: using python language Create a tuple called triple of size 3 containing the numbers 1,2,3 • Create…
A: Here is Your Code triple = (1,2,3)x = triple[0]y=triple[1]z=triple[2]print(x,y,z)quad=(1,2,3,4)x =…
Q: Consider the function definition below. Assume x = 5, y = 3 and j = 8 as the function starts. Which…
A: The above question is solved in step 2 :-
Q: Solve the following for hexadecimal word-size 2's complement numbers. Also detect whether overflow…
A: given 7FFE+3921 2A44+D9C0
Q: Q6 Determine the decimal values of the signed binary numbers expressed in 1's complement a. 00010111…
A: Please check the step 2 for solution
Q: What is meant by short-circuit evaluation? Find (or come up with) an example of where this would be…
A: The process of which the compiler skips the execution of few expressions in a logical expression is…
Q: Hello C++ question thank you 1) Develop a function that properly prints out each element of a…
A: The complete C++ code is given below with output and code screenshot A function(printelements) is…
Q: C Program to convert Decimal number to Octal number
A: Algorithm 1. Take a decimal number as input.2. Divide the input number by 8 and obtain its…
Q: write a program in c++ that contains declares a student_t data structure and defines functions to:*…
A: write a program in c++ that contains declares a student_t data structure and defines functions to: *…
Q: Write merits and demerits of memory card and USB drive.
A: MEMORY CARD: Following are the basic merits of the memory card: The most common merit of using the…
Q: Below is a 3-by-3 pixel greyscale image. 112 203 114 97 47 165 195 125 181 Convert this image to…
A: Answer the above question are as follows
Q: situation, the story is same with store ID 649 at the area 1514. The area has 4 stores, and this…
A:
Q: In the use of RSA Cryptography, if the public key under RSA Cryptography is (11, 65), find the…
A: Actually, given question regarding RSA Cryptography.
Q: Q6 Determine the decimal values of the signed binary numbers expressed in 1's complement a. 00010111…
A: a) Determine the decimal values of 00010111:…
Q: Write a python program that takes 2 strings in lowercase as input from the user. 1) First string…
A: The program starts by asking user to enter two strings. These strings are then passed to a function…
Q: (b) Apply Karatsuba's algorithm to compute 3041* 1350.
A: write karatusba algorithm to compute 3041*1350
Q: how can technology be used to improve the change management process?
A: Change managing technologies are an enabler are able to streamline the documentation; increase the…
Q: Q3. A link has a signal-to-noise ratio of 2000 and a bandwidth of 12000 KHz. What is the maximum…
A: capacity(max data rate) = bandwidth * log2(1 + SNR) bits/sec In the equation above, bandwidth…
Q: Write a java program to check if a list of integers contains only odd number. Please do it using…
A: I have provided JAVA CODE along with CODE SCREENSHOT and 2 OUTPUT SCREENSHOTS-------------…
Q: need this form in HTML. For creating file
A: I have used HTML to design a webpage which is given in the question:
Q: Please answer both numbers as they are linked altogether. Write your own Java Program and introduce…
A: //java program //1. a: java program use array and loop class Program { public static void…
Q: how can technology be used to improve the change management process?
A: how can technology be used to improve the change management process?
Q: 1. List 5 operating systems features that are uniquely deployed in mobile operating systems compared…
A: Note:- As per our guidelines we are supposed to answer only one question. Kindly repost other…
Q: Part II: Write a program to calculate the area of a triangle given the length of its three sides-a,…
A: # Length of sides must be positive# and sum of any two sidesdef findarea(a,b,c): # must be smaller…
Q: Computer networking What does the acronym GSM stand for? How does the SIM card in your phone work?
A: acronym of the GSM stand is the Global System for Mobile Communications.
Q: Examine the sound in a particular scene in Singin' in the Rain. In particular, I want you to explain…
A: The question has been answered in step2
Q: What are the names of these topologies? 2b Wraparound link
A:
Q: 12, 15, 49, 2 select the max ins adjacent in the initial ro oblem.
A:
Q: Proposition (Distributive Law): For expressions P1, P2, P3, any word matching the regular expression…
A: The above equation is true and the explanation is given below.
Q: write a program in c++ that contains declares a student_t data structure and defines functions to:*…
A: C++ allows the use of the structure to declare the composite user-defined data types. The main…
Q: Write a Python program that will take one input made up of two strings separated by a comma and a…
A: PROGRAM INTRODUCTION: Take the input line from the user. Declare and initialize the required…
Q: I need ideas for a Python programming project that includes the handling of an input file (data or…
A: # Python program to read image using OpenCV # importing OpenCV(cv2) module import cv2 # Save…
Q: This is 2082. Robots have taken over the world. The International Robot Sports Committee (IRSC) has…
A: //Code is in C# using System;using System.Collections.Generic;using System.Linq;using…
Q: What are the different principles which must be considered while selection of a scheduling…
A: Below is the answer to above question. I hope this will be helpful for you...
Q: Given: 1. public class Foo { 2. public static void main (String[] args) { 3. int i = 1: 4. int j…
A: In this question we have to find the related output for the following code given in JAVA programming…
Q: hdl code for following with ss. Circuit.
A: The answer is as follows.
Q: Write a program with total change amount in pennies as an integer input, and output the change using…
A: Java Code: import java.util.Scanner; public class LabProgram { public static void…
Q: Input a list of employee names and salaries and store them in parallel arrays. End the input with a…
A: Solution - Programming Language - Java All necessary comments are included in program code.…
Q: What are the least common mutiples of the following pairs of integers? You can enter the exponent by…
A: Please check the step 2 for solution
Q: Determine the output of the following Pep/9 machine language program. The left column is the memor…
A: Actually, given information: 0000 C100080003 060004 F1FC160007 000008 F0D4
Q: Simply to minimum number of literals using Boolean Algebra. Answer both parts and show all steps.…
A: The question has been answered in step2
Q: Explain why having more registers could improve a processors performance. What are the drawbacks?
A: Registers are the storage unit that has the fastest speed and used to store the frequently used…
Q: Question-2: Write a Python program that takes a string as an input where multiple numbers are…
A: Python Code: # input as string and process to convert in integer listinp_list = list(int(x) for x in…
Q: 1. Use if-else - elif Get the profit amount of a company as input. Calculate the income according to…
A: Hi, as per the problem we need to use if --- else -- elif in our code. So, this is a python problem.…
Q: The factorial function n! has value 1, when n ≤ 1and value n * (n- 1)!, when n > 1. Write both a…
A:
Q: Create a “Group Policy Object Editor” Microsoft Management Console. Instructions: - Provide all…
A: Create a “Group Policy Object Editor” Microsoft Management Console.Instructions: - Provide all…
Q: Python program to calculate AOC??
A: AOC stands for Area Of Circle Code for it : import math #Function that calculates area of…
Q: Which of the following is a post-order printing of this tree: Ken IN Alex Thor / Aga Aza Tal. O Aza,…
A:
Q: What happens to the user programme if an interrupt occurs and there is no interrupt handler in the…
A: Introduction: An interrupt is the processor's response to any event that necessitates software…
Q: Draw the flowchart for converting the hexadecimal to binary value. Explain each and every process…
A: Flow chart:
Step by step
Solved in 4 steps with 4 images
- CompTech a. Create a Ꜫ-NFA for the following RE: (a | ba) ? a (b | ab)* b. Create a CFG for the following RE: (01 | 0)* 1 (10 | 0)+In C++, State if the following variable names are valid or invalid. If it's invalid, state why. Note: invalid here means creating a syntax error. a) 1wayTicket b) employee_pay c) #zombies d) R66Y e) STOP! f) Final Exams Write a program to satisfy the requirements in Starting Out with C++ Chapter 4 #12 Programming Challenge: Software Sales at the end of the Chapter. (page 224) Additional instructions are below. A software company sells a package that retails for $99. Quantity discounts are given according to the following table: QuantitDiscount 10-19 20% 20-49 30% 50-99 40% 100 or more 50% Write a program that asks for the number of units sold and computes the total cost of the purchase. You must use Input Validation. Make sure the number of units is greater than 0. Make sure your output is formatted as US currency. Display the total. Additional requirement to the text book, display the discount percentage and the discount amount in addition to the total purchase cost
- In Fortran F95 program prompt the user to enter age of the user in years and program prints in output whether the user is eligible to go for trip or not. Given: Only persons above age of 17 and below 55 can go on the trip.Which of the following are correct C++ statements? (10) cout "Programming with C++!" endl; cout " Programming " " with " " C++" endl; cout " Programming" " with C++!" '\n'; cout "Programming with C++!' endl;(Modify) Rewrite the following programs to conform to good programming practice and correct syntax: a. #include using namespace std; int main( ){ cout << “The time has come” ; return 0;} b. #include using namespace std; int main ( ){cout << “Newark is a city\n”;cout << “in New Jersey\n”; cout << “It is also a city\n” ; cout << “in Delaware\n” ; return 0;} c. #include using namespace std; int main() {cout << Reading a program\n”;cout << “is much easier\n” ; cout << “if a standard form for main is used\n” ; cout <<“and each statement is written\n”;cout << “on a line by itself\n” ; return 0;} d. #include using namespace std; int main ( ){ cout << “Every C++ program” ; cout <<“\nmust have one and only one” ; cout << “main function” ; cout << “\n The escape sequence of characters”) ; cout << “\nfor a newline can be placed anywhere” ; cout <<“\n in the message passed to cout” ; return 0;}
- (Program) a. Using cout, write a C++ program that displays your name on one line, your street address on a second line, and your city, state, and zip code on a third line. b. Run the program you have written for Exercise 5a. (Note: You must understand the procedures for entering and running a C++ program on the particular computer installation you’re using.)4. During each summer, John and Jessica grow vegetables in their backyard and buy seeds and fertilizer from a local nursery. The nursery carries different types of vegetable fertilizers in various bag sizes. When buying a particular fertilizer, they want to know the price of the fertilizer per pound and the cost of fertilizing per square foot. The following program prompts the user to enter the size of the fertilizer bag, in pounds, the cost of the bag, and the area, in square feet, that can be covered by the bag. The program should output the desired result. However, the program contains logic errors. Find and correct the logic errors so that the program works properly. // Logic errors. #include #include using namespace std; int main() { double costs double area; double bagsize; cout > bagsize; cout > cost; cout > area; cout << endl; cout << "The cost of the fertilizer per pound is: $" << bagsize / cost << endl; cout << "The cost of fertilizing per square foot is: $" << area / cost << endl; return 0; }Problem 5: PLEASE USE PYTHON to solve all parts to this problem Program Specifications Write a program to calculate a course grade given points for homework, quizzes, midterm exam, and final exam. Grades are calculated differently for undergrads, grads and distance learners. Template: HOMEWORK_MAX = 800.0; QUIZZES_MAX = 400.0; MIDTERM_MAX = 150.0; FINAL_MAX = 200.0; # type your code adding plenty of comments for a better understanding of the steps Step 1. Read from input student status (str). If input is not one of "UG" (undergrad), "G" (grad), or "DL" (distance learner), print an error message and exit the program. Otherwise read from input floats for homework points, quiz points, midterm exam score, and final exam score. Calculate each category's average using maximum points for homework (800), quizzes (400), midterm exam (150), and final exam (200). Output category averages as a percentage using print(f"Homework: {homework:2.1f}%"). Ex: If the input is: UG 600.0…
- Q.3 A program is required by a company to read an employee‘s number, pay rate and the number of hours worked in a week. The program is then to validate the pay rate and the hours worked fields and, if valid, compute the employee‘s weekly pay and print it along with the input data.Use function GetUserInfo to get a user's information. If user enters 20 and Holly, sample program output is: Holly is 20 years old. #include <iostream>#include <string>using namespace std; void GetUserInfo(int& userAge, string& userName) {cout << "Enter your age: " << endl;cin >> userAge;cout << "Enter your name: " << endl;cin >> userName;} int main() {int userAge;string userName; /* Your solution goes here */ cout << userName << " is " << userAge << " years old." << endl; return 0;} Please help me with this problem using c++.Write C program which should print your name and registration number on the screen then do the following:an industry has launched an online shopping ordering system which sells 5 different products. A list of productnumber, product name and their retail price is given below:Product No. Product Name Retail Price in Rs. Quantity Available101 Soap 60.00 10102 Liquid Hand Wash 200.00 20103 Liquid Dish Wash 150.00 30104 Table cleaner 350.00 40105 Hand Sanitizer 100.00 50 Your program must store this information in an array of struct product type. You must declare the struct product_type. (HINT: You can make any other structures or arrays of structures that you think might help you solve this problem.) Your program should…