Academic Integrity: tutoring, explanations, and feedback — we don’t complete graded work or submit on a student’s behalf.

In Python Jess version 5.020 I must solve an assignmnet: Part A is to show that

ID: 3571883 • Letter: I

Question

In Python Jess version 5.020 I must solve an assignmnet:

Part A is to show that you can connect to another web page to obtain some specified data from that page. Part B requires you to read a given file containing quotations, and to choose a random quotation from that file. In Part C you will create a simple web page using Python programming, and display in it the information returned from the functions written for Parts A and B.
Part A
Using the urllib module (page 273), write a function to connect to http://www.usagold.com/gold/price.html and obtain and return the current price (in US$) of a specified gold coin. Your function must use a parameter that receives the name of the gold coin you wish to focus on. For instance, if the function is named coinPrice(), one could invoke it by using "Canadian Maple Leaf" as an argument: coinPrice("Canadian Maple Leaf"); or by using "Australian Kangaroo" as an argument: coinPrice("Australian Kangaroo"). [There is no need to show this function's output—it is to be returned, for use in Part C. Obviously you can test its correctness by running it by itself.]
NOTE: Be careful about searching for the full string: it might be worth searching just for the last word in the string (i.e. just "Leaf" or "Kangaroo".)
Part B
Save this file locally (on a PC, right click and choose "Save Target As..." or "Save link as..."), where your program can access it (probably in the same folder in which your programs are stored), and then write a (short) function to choose, and return, a random quotation from all of the quotations stored in the file. [There is no need to show this function's output—it is to be returned, for use in Part C. Obviously you can test its correctness by running it by itself.]
Part C
NOTE: Exercise 1, from the Eighth Lab should help you with the fundamentals.
Write the main function [could be called myWebPage], with two parameters [such as myWebPage(coinA, coinB)], to create a simple web page using JES, and programmatically insert into that page the information obtained by invoking the functions defined in Parts A and B. Thus, the minimum requirement is to create this simple web page using this main function, and, amongst the other function calls, to call the function written for Part A
twice, once for the first parameter such as "Canadian Maple Leaf", and once for the second parameter such as "Australian Kangaroo", and to call the function written for Part B once to insert a random quotation for the day. This minimal work will enable you to be marked out of a possible 80%. In order to get a possible 100% it is necessary to provide more than the minimum. For instance, you could include any two of
· add the date of the gold coin price quotation
· add the graphic icon (such as this one), obtained by your function from the "gold page", which corresponds to the request for the price of a Canadian Maple Leaf
· check for the success of all the 'find' statements
· format the saying differently
The ideas above are some of the ways for you to enhance your web page and to be marked out of 100%. (Any two of these or other enhancements, would be sufficient. You might want to place in comments, at the beginning of your code, what extra things you did to for the 20%, to help the marker.) There is no need to store your web page on a web server. Correct HTML is not required, only that you use HTML and that your page can be viewed in a browser. Obviously, for submission, you must include a screen copy of the web page you created, as viewed in a browser. This is a typical web page produced by a Python program, viewed in Chrome, invoked by makeWebPage("South African Krugerrand", "American Buffalo"), and worth full marks!!! [The coin thumbnails, and the date from the USA Gold web page were added to get the full marks. Additionally, the date and time when the program was run was added near the top of the page.] And this is the web source code that produced that code.
For submission, you must attach two files, as follows. This flowchart (opens in a new window) may help!
1. Your program file (that you probably named assign5), containing the code for Parts A, B and C. This file is required so that the marker can run your program with no hassle, and
2. A PDF file containing your program code and a screen copy of your web page produced in Part C. This is required so that the marker can markup your assignment and return it with your marks.
To obtain this PDF of your program code with your output, follow these steps:
1. Copy all your source code from JES (place the cursor in the Program Area, then Ctrl-A selects all and Ctrl-C copies). Ensure that you have Name(s) and Student Number(s) at the start, as comments
2. Paste (Ctrl-V) into an empty WordPad document (or MS Word or an appropriate Apple word processor)
3. Then insert a couple of empty lines at the end, and type the word "Output" on the next line
4. Select ALL of the pasted text and ensure that is is in a monospaced font (such as Courier)
5. To copy your web page's browser window (i.e. the output from Part C), ensure that it is the active window (by clicking on it) then copy it by pressing Alt-PrintScreen
6. Paste it into the document (steps b and c above), below the word "Output"
7. Save your new file!
8. Then on a PC print the file to the 'printer' called Cute PDF Writer, ensuring that you know where the resulting PDF file will be saved (a dialogue box will prompt you!) On a Mac, 'Save as PDF'. You will need to navigate to this PDF file in order to attach it to your submission.
Submissions should be made in accordance with the assignment guidelines, and not in violation of the regulations on plagiarism.
Besides the notification within Sakai, you will get an appropriate confirmation (such as this) from Isaak that your submission was received.

I need help with this assignment for ASAP.

Thank you

Explanation / Answer

#include <stdio.h>
#include <conio.h>
#include <graphics.h>
#include <dos.h>
#include <stdlib.h>
#include <time.h>
#define MROW eight
#define MCOL eight
#define MINES five
#define BSIZE fifteen
union REGS i,o;
//9 for mines
main()

              else
                       
              }
       //put mines worth in different blocks
       for(row=0;row<MROW;row++)
                
                     }
              }

       rectangle(0,0,maxx,maxy);
       //sets read port to the play space solely
       setviewport(200,190,385,370,1);
       nclick=0;
       while(!kbhit()&&loop=='t')
              val>=80)
                            {
                            val=val>=80?val-80:80+val;
                            arr[(y-195)/20][(x-210)/20]=val;

                            while(button&2)
                                   getpos(&button,&x,&y);

                            hidemouse();
                            setpos(30,50);
                            clearviewport();
                            showmouse();
                            setpos(prex,prey);
                              
                     }

              if(button&1 && x>=210 && x<=365 && y>=195 && y<=350)
                       
                                                 outtextxy(180,410,"PLAY AGAIN");
                                                 outtextxy(360,410,"QUIT");
                                                 while(x>=330 && x<=430 && y>=400 && y<=425 && !button&1)
                                                        getpos(&button,&x,&y);
                                          }
                                   else
                                            
                                          if(x>=330 && x<=430 && y>=400 && y<=425)
                                                   
                                          }
                                   }
                            }
                     else
                            { //NOT ON DANGER space
                            if(arr[trow][tcol]<50)
                                     
                            }
                     }
              }
       if(loop=='t')
                
       }
}

initmouse()


showmouse()


hidemouse()


restarea(int x1,int x2,int y1,int y2)


setpos(int x,int y)


getpos(int *button,int *x,int *y)

Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
Chat Now And Get Quote