Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Search & Filtering

You have been contracted by client to develop a program using c++. The Program must have the
following specifications.
The program must:
a. Allow the user to enter the full name of the university - “Ghana Communication Technology
University”.
b. Print the entire name for the university.
c. Count the number of ‘e’ in “Ghana Communication Technology University” and display.
d. Print the last 21 characters in “Ghana Communication Technology University”.
e. Replace the string “Ghana” in “Ghana Communication Technology University” with “Accra”
and print the new name.
You should submit a script file and a plain text output file (.txt) that contains the test output. Multiple file uploads are permitted.

Your submission will be assessed using the following Aspects.

Does the submission include a my_sqrt function that takes a single argument and includes the while loop from the instructions?
Does the my_sqrt function initialize x and return its final value?
Does the test_sqrt function print a values from 1 to 25?
Does the test_sqrt function print the values returned by my_sqrt for each value of a?
Does the test_sqrt function print correct values from math.sqrt for each value of a?
Does the test_sqrt function print the absolute value of the differences between my_sqrt and math.sqrt for each value of a?
Does the my_sqrt function compute values that are almost identical to math.sqrt ("diff" less than 1e-14)?
Part 2

Write a function named test_sqrt that prints a table like the following using a while loop, where "diff" is the absolute value of the difference between my_sqrt(a) and math.sqrt(a).

a = 1 | my_sqrt(a) = 1 | math.sqrt(a) = 1.0 | diff = 0.0
a = 2 | my_sqrt(a) = 1.41421356237 | math.sqrt(a) = 1.41421356237 | diff = 2.22044604925e-16
a = 3 | my_sqrt(a) = 1.73205080757 | math.sqrt(a) = 1.73205080757 | diff = 0.0
a = 4 | my_sqrt(a) = 2.0 | math.sqrt(a) = 2.0 | diff = 0.0
a = 5 | my_sqrt(a) = 2.2360679775 | math.sqrt(a) = 2.2360679775 | diff = 0.0
a = 6 | my_sqrt(a) = 2.44948974278 | math.sqrt(a) = 2.44948974278 | diff = 0.0
a = 7 | my_sqrt(a) = 2.64575131106 | math.sqrt(a) = 2.64575131106 | diff = 0.0
a = 8 | my_sqrt(a) = 2.82842712475 | math.sqrt(a) = 2.82842712475 | diff = 4.4408920985e-16
a = 9 | my_sqrt(a) = 3.0 | math.sqrt(a) = 3.0 | diff = 0.0

Modify your program so that it outputs lines for a values from 1 to 25 instead of just 1 to 9.
CS 1101 Programming Fundamentals - AY2022-T1
Dashboard
My courses
CS 1101 - AY2022-T1
30 September - 6 October
Learning Guide Unit 5

Learning Guide Unit 5
Learning Guide Unit 5

Programming Assignment
This assignment is based on Exercise 7.1 from your textbook.

Part 1

Encapsulate the following Python code from Section 7.5 in a function named my_sqrt that takes a as a parameter, chooses a starting value for x, and returns an estimate of the square root of a.

while True:
y = (x + a/x) / 2.0
if y == x:
break
x = y

Which of the language listed below is not a High-level programming language?

Select one:

a.

MASM

b.

C#

c.

Python

d.

Ruby


  1. To qualify for a loan award, a student should score between 25 -100 points and should have been admitted to an accredited institution.  Write a program that accept points, institution and their gender(f for female and m for male) separated by spaces and determine if the student qualifies for an award or not. The program should also, print their gender in full and capitalized

 

NOTE: String processing methods of String class should be used where necessary!! 

Institution Name 

Accreditation 

 NUST 

Yes 

UNAM 

Yes 

Space Institute 

No 

 

Sample run1:  

Enter points and institution: 60 NUST F  

Output: Loan Award Successful and application gender is: FEMALE

 

  1. Defining diagram 
  2. Pseudocode 
  3. Flowchart 
  4. Java program  

Write a program that calculate and displays an employee’s weekly salary. If the hours worked are less or equal to 40, the employee is payed N$65.54 per hour, otherwise the employee receives N$80.20 for every hour worked exceeding 40.  


(Tic-Tac-Toe ) Create a class Tic-Tac-Toe that will enable you to write a program to play Tic-Tac-Toe. The class contains a private 3-by-3 two-dimensional array. Use an enumeration to represent the value in each cell of the array. The enumeration's constants should be named X, O and EMPTY (for a position that does not contain an X or an O). The constructor should initialize the board elements to EMPTY. Allow two human players. Wherever the first player moves, place an X in the specified square and place an O wherever the second player moves. Each move must be to an empty square. After each move, determine whether the game has been won and whether it's a draw. Also allow the player to specify whether he or she wants to go first or second.

1.    Create a class to implement a queue using a circular array[20 marks]<o:p></o:p>

 a.     The class should contain functions to

                                    i.         Insert a new value, [5 marks]

                                  ii.         Delete a value. [5 marks]



 Network configurations

1. Receive internet access from the WAN

2. Provide internet access to devices connecting to AP that is connected to the ubuntu 

server

3. Block/Allow IP/MAC address

2. Configurations can be altered/configured programmatically

1. SSID of the external AP

2. Can be password protected or Open Security

3. Network interfaces so we can choose what will be the LAN and the WAN

4. Set DHCP configuration for the clients that will be connecting to the LAN (ex. IP pool 

range)

5. Allow/Block clients to internet access

3. Captive portal functionality

1. Authorized/Unauthorized client identification

2. Allowing/denying of client programmatically

3. Sending request to external web app

4. Receiving response/request from external web app

4. Documentation or simple guide for each configuration, how to install them, their location, 

meaning of parameters


LATEST TUTORIALS
APPROVED BY CLIENTS