Best writers. Best papers. Let professionals take care of your academic papers

Order a similar paper and get 15% discount on your first order with us
Use the following coupon "FIRST15"
ORDER NOW

Can You Please Enter This Python Program Code Into An IPO Chart? Import Random

Can you please enter this python program code into an IPO Chart? import random def menu(): print(“nn1. You guess the numbern2. You type a number and see if the computer can guess itn3. Exit”) while True: #using try-except for the choice will handle the non-numbers #if user enters letters, then except will show the message, Numbers only! try: c=int(input(“Enter your choice: “)) if(c>=1 and c<=3): return c else: print("Enter number between 1 and 3 inclusive.") except: #print exception print("Numbers Only!") def guessingGame(): min_number=1 max_number=10 #set number of guesses = 0 numGuesses=0 rand=random.randint(min_number, max_number) #prints the header, welcoming the user print("nWelcome to the Guess My Number Program!") #While loop, comparing the users guessed number with the random number. #If it matches, it will say you guessed it. while (True): #use try-block try: guess=eval(input("Please try to guess my number between 1 and 10:")) #check if the guess is less than 0, then continye to beginning of the loop if(guess<0): continue; elif (guess==rand): #increment the guess count by 1 numGuesses=numGuesses 1 print("You guessed it! It took you ", numGuesses,"attempts") #break will end the loop once the guess is a match. #Conditions if the guess is too low or too high to keep guessing break elif(guess < rand): #increment the guess count by 1 numGuesses = numGuesses 1 print("Too low") else: #increment the guess count by 1 numGuesses = numGuesses 1 print("Too high") except: #print exception print("Numbers only!") def guessingGameComp(): countGuess=0 userNumber=int(input("nPlease enter a number between 1 and 10 for the computer to guess:")) while userNumber10: userNumber=int(input(“Guess a number between 1 and 10: “)) while True: countGuess =1 compRand = random.randint(1,10) if(userNumber==compRand): print(“The computer guessed it! It took {} attempts”.format(countGuess)) break elif(userNumber<compRand): print("The computer guessed {} which is too low".format(compRand)) else: print("The computer guessed {} which is too high".format(compRand)) def main(): while True: userChoice=menu() if userChoice==1: guessingGame() elif userChoice==2: guessingGameComp() elif userChoice==3: print("nThank you for playing the guess the number game!") break else: print("Invalid choice!!!") main() IPO Chart Inputs Process (calculations) Outputs

A “system Call” Is Used By A Process To Request That The Kernel Perform

A “system call” is used by a process to request that the kernel perform a task on behalf of the requesting process. • Why is it necessary that the kernel perform tasks on behalf of processes? Why doesn’t the process perform the task itself? • The details of the system call interface is hidden from the programmer as the operating system supplies a library of standardised function calls4. Linux and macOS has over 300 such system functions. – Explain how these functions actually notify the kernel that a service is being requested of it, and – explain the different methods used to: ∗ identify the system call being requested, and ∗ pass the data to the kernel that may be required by the system call. ∗ Which of the systems described here does Linux use? • Using actual Linux system calls as examples, explain what sort of tasks an operating system will perform on behalf of a process? (see the man pages intro(2), syscalls(2), and Section 2).

Many Multi-core Systems Have Different Levels Of Cache On The Chip, One Level Is

Many multi-core systems have different levels of cache on the chip, one level is local to each processing core (L1 and L2 on Intel systems), and another level is shared among all processing cores (L3 on Intel systems). Why are caching systems designed this way.

Python Question Build A Program That Displays For The User, The Top 5 Most

Python Question Build a program that displays for the user, the top 5 most viewed YouTube videos in the past 24 hours using the Youtube API.

Linux And Windows Maps One User Thread To One Kernel Thread. What Are The

Linux and Windows maps one user thread to one kernel thread. What are the advantages and disadvantages of this method over other methods? please urgent!

Assume That The Time Of Executing A Task On A Single Worker Is T1.

Assume that the time of executing a task on a single worker is T1. The time for non-parallel part of the task will be Ws=3 seconds, and the time for parallel part will be Wp=8 seconds. Now assume that the same task will run 6 workers. if the non parallelizable serial faction of the total work is 40% , Apply the corollary of Amdahl’s law to estimate the upper bound of speedup (Sp).?

Use The Following Skeleton As A Basis: (Use The C# Programming Language To Complete)

Use the following skeleton as a basis: (Use the C# programming language to complete) class MilesPerHourTable { public static void Main() { } }

In The MATLAB Code Below What Does The Line: A(i) = 0; Do? Is

In the MATLAB code below what does the line: A(i) = 0; do? Is A(i) just a variable or does in index something?

Using Actual Linux System Calls As Examples, Explain What Sort Of Tasks An

Using actual Linux system calls as examples, explain what sort of tasks an operating system will perform on behalf of a process? (see the man pages intro(2), syscalls(2), and Section 2).

Hi. I Got This Question But I Am Not Sure If I Need More

Hi. I got this question but I am not sure if I need more information to do it? If this is enough info what am I missing? am I suppose to draw it?

Use The C# Programming Language To Complete Sample Code; Using System; Namespace RandomArray {

Use the C# programming language to complete Sample code; using System; namespace RandomArray { public class RandomArrayNoDuplicates { static Random rng = new Random(); ///

/// Creates an array with each element a unique integer /// between 1 and 45 inclusively. ///

/// length of the returned array < 45 /// /// an array of length “size” and each element is /// a unique integer between 1 and 45 inclusive public static int[] ArrayWithNoDuplicates(int size) { } } }

Q1. What Are The Fundamental Differences Between Machine Learning Model Development And Traditional Enterprise

Q1. What are the fundamental differences between Machine Learning Model Development and Traditional Enterprise Software Development? How Enterprises can make best use of machine learning? Q2. What is Feature Engineering? How to Engineer Features? How to get good at it?

Why Is It Necessary That The Kernel Perform Tasks On Behalf Of Processes? Why

Why is it necessary that the kernel perform tasks on behalf of processes? Why doesn’t the process perform the task itself?

Use The Squares Number For Figure 1: Using The Triangles Number For Figure 2:

use the squares number for Figure 1: using the triangles number for Figure 2: (Use the C programming language to complete) code: #include #include #include #include /** * Define a function called plot_shapes which parses a list of drawing * commands from a text file, rendering them to the ZDK screen. * * Parameters: * stream – The address of a FILE object which provides access to the stream. * * Returns: * nothing. */ RESULT_TYPE FUNCTION_NAME ( PARAMETER_LIST ) { // Declare a variable called pen of type char, with initial value ‘*’. INSERT CODE HERE // While stream has not reach end of input: WHILE SOMETHING { // Declare a variable called command of type char. // Declare six variables of type int. // Use a single call to fscanf to (attempt to) read a char and six int // values into command, and your integer variables. Capture the value // returned by fscanf for later use. // If the number of items scanned is 2: IF SOMETHING { // If the command is ‘p’, assign the value of arg1 // into pen. } // Otherwise, if the number of items scanned is 5: OTHERWISE IF SOMETHING { // If the command is ‘r’, draw a rectangle using the current pen // as indicated in the task statement. } // Otherwise, if the number of items scanned is 7: OTHERWISE IF SOMETHING { // If the command is ‘t’, draw a closed triangle using the pen // character with vertices specified by the 6 points, as noted in // the task statement. } } } #define MAX_ITEMS (100) int main(int argc, char *argv[]) { setup_screen(); for (int i = 1; i < argc; i ) { FILE * stream = fopen(argv[i], "r"); if (stream != NULL) { plot_shapes(stream); fclose(stream); } draw_string(0, screen_height() – 1, "Press any key to continue…"); show_screen(); wait_char(); } return 0; }

The Details Of The System Call Interface Is Hidden From The Programmer As The

The details of the system call interface is hidden from the programmer as the operating system supplies a library of standardised function calls4. Linux and macOS has over 300 such system functions. – Explain how these functions actually notify the kernel that a service is being requested of it.

The Language Is Julia, The Question Is: Modify The Code To Handle Cases Where

The language is Julia, the question is: modify the code to handle cases where labels (clusters) for some of the data points are specified ahead of time. Test this on a few examples.

Balloon Class (20 Points) This Question Is Meant To Show That You Can Set

Balloon Class (20 points) This question is meant to show that you can set up a basic Class. You will create a balloon class. Your class must have: a string data member for the color of the balloon a default constructor with default color “blue”. You may use a parameterized constructor with a default parameter. a member function (a getter) to return the color of the balloon a member function (a setter) to set the color of the balloon In main you will: Declare a balloon object Query the user for a color If the entered color is “same”, don’t update the color, otherwise use the setter function to set the color of the declared ballon object to the color that was input Print the color of your ballon object using your getter function Sample Input Green Sample Output Enter Color: The balloon is Green Additional Requirements and Assumptions Though one would normally write a program like this using separate files, to make the question simpler, just do it in one file. Thus, your class declaration (normally Class.h) and your class member function definitions (normally Class.cpp) are just included above main in the same file. You may assume that the user will enter a one word color (e.g. “orange”), or “same” if the color should not be changed. You will receive 0 points for this question if you solve the problem in a way other than using a Class. You must set the balloon color with your own setter member function and get the color for printing with your own getter member function. (10 point deduction each) You must have a default constructor with default color “blue”. (5 point deduction) c please

Google Docs (20 Points) Given The Document Class Below, You Will Write A Basic

Google Docs (20 points) Given the Document class below, you will write a basic version of Google Drive. Your program will store two lists of documents, one for documents the user has created and one for created documents the user has shared with a friend. The user will have a few options which you will need to implement (note: the menu will only be displayed once at the beginning of the program): Add a document to the user’s list: Allow the user to enter the document name, document extension, and document contents and then add that Document to the list of documents Example Input/Output: Choose an option below: 1. Add a document to your list 2. Rename one of your documents 3. Share one of your documents with your friend 4. Display all of the documents 5. Quit 1 Enter the document name: MainLab1 Enter the document extension: doc Enter the document content: #include …. Enter option: Rename one of the user’s documents Allow the user to enter the index of the document in their list they want to rename Allow the user to enter the updated name of that document Set the name of the document to be the updated name they enter Example Input/Output: Enter option: 2 Enter the index of your document you want to rename: 3 Enter the updated name of the document: MainLab3 Enter option: Share one of the user’s documents with a friend Allow the user to enter the index of their document they want to share with their friend Example Input/Output: Enter option: 3 Enter the index of your document you want to share: 6 Enter option: Display all the documents in both the user’s and the friend’s list. Print all the information about all the documents in the user’s list Print all the information about all the documents in the friend’s list Example Input/Output: Enter option: 4 ——————-Your List—————— Name: MainLab1.cpp Contents: #include …. Name: REL_A_131_Paper.doc Contents: In the Book of Mormon, one of the main… Name: American-Heritage-Study-Guide.doc Contents: The Spanish Armada was a… Name: Physical_Science_100.ppt Contents: Slides for Physical Science Presentation… ————–Your Friend’s List————– Name: American-Heritage-Study-Guide.doc Contents: The Spanish Armada was a… ——————————————– Think about what type of object you want your vectors to store (hint: you want any change in the document you share with your friend to change in your list AND their list). At the end of the program, free up any memory you may have allocated. Note – do not worry about error checking for invalid indexes. Deductions: Failure to delete all the memory off the heap at the end of the program (10 points) Failure to use pointers (25 points) Full Example Input/Output: Choose an option below: 1. Add a document to your list 2. Rename one of your documents 3. Share one of your documents with your friend 4. Display all of the documents 5. Quit 1 Enter the document name: MainLab1 Enter the document extension: cpp Enter the document content: #include …. Enter option: 1 Enter the document name: REL_A_131_Paper Enter the document extension: doc Enter the document content: In the Book of Mormon, one of the main… Enter option: 1 Enter the document name: American-Heritage-Study-Guide Enter the document extension: doc Enter the document content: The Spanish Armada was a… Enter option: 1 Enter the document name: Physical_Science_100 Enter the document extension: ppt Enter the document content: Slides for Physical Science Presentation… Enter option: 4 ——————-Your List—————— Name: MainLab1.cpp Contents: #include …. Name: REL_A_131_Paper.doc Contents: In the Book of Mormon, one of the main… Name: American-Heritage-Study-Guide.doc Contents: The Spanish Armada was a… Name: Physical_Science_100.ppt Contents: Slides for Physical Science Presentation… ————–Your Friend’s List————– ——————————————– Enter option: 3 Enter the index of your document you want to share: 2 Enter option: 4 ——————-Your List—————— Name: MainLab1.cpp Contents: #include …. Name: REL_A_131_Paper.doc Contents: In the Book of Mormon, one of the main… Name: American-Heritage-Study-Guide.doc Contents: The Spanish Armada was a… Name: Physical_Science_100.ppt Contents: Slides for Physical Science Presentation… ————–Your Friend’s List————– Name: American-Heritage-Study-Guide.doc Contents: The Spanish Armada was a… ——————————————– Enter option: 2 Enter the index of your document you want to rename: 2 Enter the updated name of the document: American-Heritage-Final-Study-Guide Enter option: 4 ——————-Your List—————— Name: MainLab1.cpp Contents: #include …. Name: REL_A_131_Paper.doc Contents: In the Book of Mormon, one of the main… Name: American-Heritage-Final-Study-Guide.doc Contents: The Spanish Armada was a… Name: Physical_Science_100.ppt Contents: Slides for Physical Science Presentation… ————–Your Friend’s List————– Name: American-Heritage-Final-Study-Guide.doc Contents: The Spanish Armada was a… ——————————————– Enter option: 5 c please

Housing List (35 Points) This Question Is Meant To Test Your Ability To Do

Housing List (35 points) This question is meant to test your ability to do inheritance and polymorphism. You will create a program using inheritance and polymorphism that allows you to keep a list of dwellings. You will have a base class for dwellings and derived classes for apartments and houses. You store pointers to apartments and houses in one vector of pointers. You will print them out using virtual ToString functions which automatically uses the appropriate ToString based on polymorphism. Your main function loops, prompting the user for one of the following options, until “quit” is entered: “house” – Query for an address and property size in square feet. Create a new house object with the address and property size and add it to your dwelling list vector. The address can be a string and property size can be an int. “apartment” – Query for an address and an apartment number. Create a new apartment object with the address and apartment number and add it to your dwelling list vector. “print” – Loop through the dwelling list polymorphically calling ToString, and printing the returned strings. Note that if needed, you can change an int to a string with the c to_string function. Additional Requirements and Assumptions You may assume the user will enter one word addresses (e.g. 235_Cougar_Lane) and thus you can just use cin. We suggest you do not use getline. While you must use inheritance and virtual functions, you are free to use pure virtual functions or not, private or protected data members, etc. as you wish. Though one would normally write a program like this using separate files, just do it in one file. You may assume that the user enters correct inputs. You do not need to error check. You will receive 0 points for this question if you solve the problem in a way other than using inheritance and polymorphism. You must create your own constructor for each class. It can be a default constructor, parameterized constructor, or both (which is preferred). (3 point possible deduction for each class) Data members must be declared in the most base class possible. (5 point deduction in each case) Sample Input house 23_Penny_Lane 9000 apartment 154_Q_Street 6 print quit Sample Output Option: Address: Number of Square Feet: Option: Address: Apartment Number: Option: print ** Dwelling List ** A home at 23_Penny_Lane with 9000 square feet of property An apartment at 154_Q_Street, apartment number 6 // You are free to use all, part, or none of the code that follows. It is a subset of our solution, // but with the classes and other critical pieces missing #include #include #include using namespace std; //Classes here int main() {    string address;    string usrOption;    int propertySize = 0;    int aptNumber = 0; // Not all necessary variables are defined here       do {        cout << endl << "Option: " <> usrOption;        if (usrOption == “print”) {            cout << "** Dwelling List **" << endl;        }        else if (usrOption == "house") {            cout << "Address: " <> address;            cout << "Property Size: " <> propertySize;        }        else if (usrOption == “apartment”) {            cout << "Address: " <> address;            cout << "Apartment Number: " <> aptNumber;        }    } while (usrOption != “quit”);    return 0; } c please

Computer Architecture Define And Derive The Degree, Edge Connectivity And Bisection Bandwidth For The

Computer Architecture Define and derive the degree, edge connectivity and bisection bandwidth for the following static networks with p nodes: completely connected, 3-dimensional mesh, 2-dimensional torus, d-dimensional hypercube.

“Squash Dem Bugs!!” (20points) The Purpose Of This Lab Is To Test Your Ability

“Squash Dem Bugs!!” (20points) The purpose of this lab is to test your ability to detect, analyze and remove both syntactic and semantic errors. The following program is SUPPOSED to read in a list of Name/Age pairs and add them to an alphabetically ordered list (a – z), and then print the ordered list. It doesn’t work… Fix it! Additional Information You can assume that there will never be two people with identical names so the same name will not be entered more than once (i.e. you don’t need to worry about breaking a tie with age etc.). #include “Person.h” #include “PeopleList.h” #include #include using namespace std; int main(){ int personAge = 0; string personName = “Uninitialized”; PeopleList personList; int numberOfPeople = 0; cout << "Congratulations! Your program compiles!n" << endl;//this line earns you points… cout <> personAge; for(int i = 0; i < numberOfPeople; i ){ cout << "Enter person " << i 1 <> personName; cout << "Enter person " << i 1 <> personAge; personList.Add(Person(personName, personAge)); } cout << endl; personList.PrintList(); return 0; } c please those weren’t provided.

The post Can You Please Enter This Python Program Code Into An IPO Chart? Import Random appeared first on Smashing Essays.

 
Looking for a Similar Assignment? Order now and Get 10% Discount! Use Coupon Code "Newclient"