- In the extension bar, click the AdBlock Plus icon
- Click the large blue toggle for this website
- Click refresh
- In the extension bar, click the AdBlock icon
- Under "Pause on this site" click "Always"
- In the extension bar, click on the Adguard icon
- Click on the large green toggle for this website
- In the extension bar, click on the Ad Remover icon
- Click "Disable on This Website"
- In the extension bar, click on the orange lion icon
- Click the toggle on the top right, shifting from "Up" to "Down"
- In the extension bar, click on the Ghostery icon
- Click the "Anti-Tracking" shield so it says "Off"
- Click the "Ad-Blocking" stop sign so it says "Off"
- Refresh the page
- In the extension bar, click on the uBlock Origin icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the uBlock icon
- Click on the big, blue power button
- Refresh the page
- In the extension bar, click on the UltraBlock icon
- Check the "Disable UltraBlock" checkbox
- Please disable your Ad Blocker
- Disable any DNS blocking tools such as AdGuardDNS or NextDNS
- Disable any privacy or tracking protection extensions such as Firefox Enhanced Tracking Protection or DuckDuckGo Privacy.
If the prompt is still appearing, please disable any tools or services you are using that block internet ads (e.g. DNS Servers, tracking protection or privacy extensions).
Question
Kaiser95
1. Write pseudocode to solve the following problem.
(i) Declare an array nums that can hold 100 real numbers.
(ii) Write pseudocode to load nums with 100 values, entered via the keyboard. Assume all data are valid.
(iii) Write pseudocode to prompt for an integer target. Search array nums for target. If found, print the location where target was found. Otherwise, print “Not found”.
(iv) Briefly explain how your response to 1 (ii) would change if the input data is stored in a file instead of being read via the keyboard. Note: No pseudocode is necessary. Only an explanation is need.
2. A file “input.dat” exists and is loaded with several positive integers. Each integer is separated by at least one space and the last value in the file is -1, which signifies the end of the data. Assume all data are valid.
Write pseudocode to read the values in the file and find and print the sum of all integers in the file that are greater than 50. For example, if the file contains
5 70 10 3 80 100 -1
you are only to find the sum of the integers 70, 80 and 100.
Link to comment
https://www.neowin.net/forum/topic/1279758-problem-solving/Share on other sites
1 answer to this question
Recommended Posts