Member Avatar

Anyone can fix this code. thank you, only TURBO C program #include<stdio.h> #include<string.h> #include<stdlib.h> #define true 0 #define false 1 struct product { char id[10]; char name[20]; int quantity; int numSold; float price; int discount; float sales; }; struct product prod[30]; int count = 0; FILE *f; int writefile() { int i; f = fopen("inventory.txt", "w"); if (f == NULL) return -1; fprintf(f, "%d\n", count); for (i = 0; i < count; ++i) { fputs(prod[i].id, f); fprintf(f, "\n"); fputs(prod[i].name, f); fprintf(f, "\n"); fprintf(f, "%d\n", prod[i].quantity); fprintf(f, "%d\n", prod[i].numSold); fprintf(f, "%f\n", prod[i].price); fprintf(f, "%d\n", prod[i].discount); fprintf(f, "%f\n", prod[i].sales); } fclose(f); return …

Member Avatar
+0 forum 1
Member Avatar

CREATE TABLE Peaje ( id_no_pk CHAR(2) NOT NULL, nombre VARCHAR(30) NOT NULL, localizacion VARCHAR(30) NOT NULL, dirrecion VARCHAR(50) NOT NULL, tipo CHAR(1) NOT NULL, municipio_fk CHAR(2), CONSTRAINT Peaje_id_no_pk PRIMARY KEY(id_no_pk) CONSTRAINT Peaje_municipio_fk FOREIGN KEY (municipio_fk) REFERENCES Municipio(id_no_pk)); CONSTRAINT Peaje_municipio_fk FOREIGN KEY (municipio_fk) REFERENCES Municipio(id_no_pk)) * ERROR at line 9: ORA-00907: missing right parenthesis The parenthesis are in pairs and match. Why would this error message occur and how could I fix it>? Edit: this is the other Table for reference: CREATE TABLE Municipio ( id_no_pk CHAR(2) PRIMARY KEY, nombre VARCHAR(20) NOT NULL ) ;

Member Avatar
+0 forum 1
Member Avatar

Hi, Phrases on video is getting stacked up on each other after some iteration. Please help. Here is the link: http://responsivemts.com I have attached the screenshot for your reference. Thank you, ![Capture.JPG](/attachments/large/2/7db0d27700994ee4f0982cf8d3a54c3e.JPG) <div class="newsticker"> <ul class="newsticker-list"> <li class="newsticker-item item1"> <h1 >All Your Ad Campaign Needs in One Place</h1> </li> <li class="newsticker-item item2"> <h1 >Operational Efficiency? Check!</h1> </li> <li class="newsticker-item item3"> <h1 >24/7 Ad Ops? We've Got You Covered</h1> </li> <li class="newsticker-item item4"> <h1 >WE OFFER </h1> </li> <li class="newsticker-item item5"> <h1 >Programmatic Marketing Done Right</h1> </li> <li class="newsticker-item item6"> <h1 >Customized Campaigns and Limitless Imagination</h1> </li> <li class="newsticker-item item7"> <h1>Cutting-Edge …

Member Avatar
+0 forum 1
Member Avatar

So, with my program, I want to calculate prime numbers and would only like to see it come out with only one prime number. I tried to put it in a if statement at the end like "if (number_of_primes=number_tester) printf("%i/n", test_int)", it did not work. and at it's current state it is calculating prime numbers, but it sometimes duplicates them. Also, this is in c programming. `#include<stdio.h> #include<stdbool.h> int main (void) { int number_tester, prime_number, div, number_of_primes, test_int; printf("for which prime number do you want to know the value of?: "); scanf("%i", &number_tester); printf("Debug-> entered number = %i\n\n", number_tester); prime_number=number_tester%div; …

Member Avatar
+0 forum 1
Member Avatar

Hi, I was learning 'Selection Sorting' in C and while writing my program I constantly get the error- >[Error] expected expression before '{' token Here's my program- #include<stdio.h> void main(int A[10]) { int i,j; A[10]={2,4,1,9,0,6,5,7,3,8}; for(i=0;i<9;++i) { int Min=i; for(j=i+1;j<10;++j) { if(A[j]<Min) { Min=j; } int temp=A[i]; A[i]=A[Min]; A[Min]=temp; } } for(i=0;i<10;++i) { printf("%d\n",A[i]); } } If I try to initialize A[10] as a parameter in the function, it gives this error- >[Error] expected ';', ',' or ')' before '=' token What's the issue?

Member Avatar
+0 forum 4
Member Avatar

I have a popup from index.ejs, called math.ejs. After pressing the submit Ok button, I want the math.ejs popup to close and to show the calculated value on index.ejs. But right now, when I press the submit button, the popup goes to index.ejs and updates it there; it does not close. It does not update it on the normal index.ejs browser page. I have to refresh that page for it to update. <form class="" action="/index" method="post" name="mathform"> <p>Value: <%= myValue %></p> <button class="btn btn-md" name="button" value="confirm" onclick="CloseAndRefresh();">Ok</button> </form> <script language="javascript"> function CloseAndRefresh() { opener.location.reload(true); setTimeout(function() { window.close(); }, 3000); } …

+0 forum 0
Member Avatar

I want a calender to appear, making it so that the customer can chose the dates. #include <iostream> #include <string> #include <ctime> using namespace std; double SubTotal=0.00,Total=0.00, Dis=0.00, DisGCH=0.40, DisConf=0.15, DisSpec=0.05; int NoOfDays=0, TelNumber, CreditCN, GoldCN, RPriceSing=175.00, RPriceDoub=250.00, ConfN; string LName, FName, Address,Occupancy, DisType,GoldCardHolder,ConfDel, CheckInDate; int main(){ cout<< "WELCOME TO SANDY SHORES BEACH HOTEL"<<endl; cout<< "Select Check In Date"<<endl; cin >>CheckInDate>>endl; // current date/time based on current system time_t now = time(0); // convert now to string form char* dt = ctime(&now); cout << "The local date and time is: " << dt << endl; // convert now to tm …

Member Avatar
+0 forum 2
Member Avatar

I do not have a clue as to what the problem is with this code. I am running php 7.0. This was an old form I used long ago, decided to upgrade it for random use. It works on php 5.0 but not in 7. I have run it through many php checks and not a problem is found. Does anyone have the answer for me? I would greatly appreciate it. No Errors shown just the white age of death. <?php include_once('jcart.php'); ini_set('display_errors', 1); ini_set('display_startup_errors', 1); error_reporting(E_ALL); // Connects to your Database mysqli_connect("localhost", "dnk", "here1") or die(mysqli_error()); mysqli_select_db("dnnnk") or die(mysqli_error()); …

Member Avatar
+0 forum 3
Member Avatar

I'm doing an assignment for a class and I can't figure out what I'm doing wrong to keep getting the "illegal start of expression" error. Any help would be appreciated. public class Overloading { public static void main(String[] args) { public static int max(int num1, int num2) { if (num1 > num2) return num1; else return num2; } public static double max(double num1, double num2) { if (num1 > num2) return num1; else return num2; } public static int max(double num1, double num2) { if (num1 > num2) return num1; else return num2; { public static double max(int num1, double …

Member Avatar
+0 forum 5
Member Avatar

Hey everyone. I received this sql server error and I can't figure out where the trouble is: Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code. Exception Details: System.Data.SqlClient.SqlException: 'Incorrect syntax near '​'.' Source Error: Line: 46 Error Line: cmdsql.ExecuteNonQuery() Dim connexcel As OleDbConnection Dim daexcel As OleDbDataAdapter Dim dsexcel As DataSet Dim cmdexcel As OleDbCommand Dim drexcel As OleDbDataReader Dim connsql As SqlConnection Dim dasql As SqlDataAdapter Dim dssql As DataSet Dim cmdsql As SqlCommand Dim drsql …

Member Avatar
+0 forum 3
Member Avatar

Hay, Everyone I am doing seo of my site "[font generator](https://fontvilla.com/)" but I notic that after submmiting url through Google Search Console 2 or 3 page are repeating with same Meta Title and URLs. I don't know how to remove these duplcate URLs from the SERP? Can anyone guide me in this situation. Thanks.

Member Avatar
+0 forum 2
Member Avatar

I have used the breadcrumblist mentioned by the schema.org for my [[website](www.xenex-media.com.au)](https://xenex-media.com.au/) <script type="application/ld+json"> { "@context": "https://schema.org/", "@type": "BreadcrumbList", "itemListElement": [{ "@type": "ListItem", "position": 1, "name": "Home", "item": "https://xenex-media.com.au/" },{ "@type": "ListItem", "position": 2, "name": "About Us", "item": "https://xenex-media.com.au/gold-coast-web-designers/" },{ "@type": "ListItem", "position": 3, "name": "Our Services", "item": "https://xenex-media.com.au/digital-marketing-agency-gold-coast/" },{ "@type": "ListItem", "position": 4, "name": "Contact Us", "item": "https://xenex-media.com.au/contact-us/" }] } </script> And this is the result showing in Google searches: https://i.imgur.com/wYTqfZ7.png What is missing? Please guide. Regards.

Member Avatar
+0 forum 5
Member Avatar

[ayuda] ![11.PNG](/attachments/large/4/4ddf2f6f33f7cbf727101afafa83bcf6.PNG) en la parte donde va la informacion todo lo agrege correctamente lo quite porque segun el error esta en la linea 6 Y ESTE ES EL CODIGO: ![23.PNG](/attachments/large/4/de429e28fe81a179b52d07efa435dd99.PNG)

Member Avatar
+1 forum 2
Member Avatar

What's wrong in the following program- #include<stdio.h> main() { int n,d=2,r; printf("Enter a number to check its divisibility:"); scanf("%d",&n); for(d<n/2; d++;) { if(n%d!=0) { r=1; continue; } else { printf("%d is not a prime number.",n); break; } } if(r==1) { printf("%d is a prime number.",n); } } I want it to start the loop again after it finds "n%d!=0" true to check rest of the numbers, (rather than using "n%d==0" and then simply breaking the loop). But it is giving the following output for prime numbers: > "%d" is not a prime number."%d" is a prime number. While the output …

Member Avatar
+0 forum 1
Member Avatar

I'm trying to make a program to calculate sum of n terms of the series (x + (x^3)/3! + (x^5)/5! +...) - #include<stdio.h> #include<math.h> main() { int x,r,n,fct=1; float term,sum=0; printf("Enter the value for x:"); scanf("%d",&x); printf("Enter the number of terms to calculate sum upto:"); scanf("%d",&n); for(r=2(n-1)+1;r%2!=0;r++,n++) /*as r's value in nth term comes up to be 2(n-1)+1*/ { fct=fct*r; term=pow(x,r)/fct; sum=sum+term; } printf("The sum of the series (x^r)/r is %f",sum); } but it is showing the error "called object is not a function or a function pointer". What is it and how to fix it?

Member Avatar
+0 forum 2
Member Avatar

love_you_21@21-VirtualBox:~$ python3 Python 3.6.8 (default, Jan 14 2019, 11:02:34) [GCC 8.0.1 20180414 (experimental) [trunk revision 259383]] on linux Type "help", "copyright", "credits" or "license" for more information. >>> import tkinter Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'tkinter' >>> >>> >>> >>>import Tkinter Traceback (most recent call last): File "<stdin>", line 1, in <module> ModuleNotFoundError: No module named 'Tkinter' >>> >>> >>> >>> what happen i don't know pls help Tkinter & tkinter both can't import

+0 forum 0
Member Avatar

Hi, I'm learning C and I was trying to print this program using if-else statement: void main() { char* opinions; printf("What do you think of me?"); scanf("%s",&opinions); if (opinions="Ugly") { printf("Huh, I'm way more beautiful than your heart"); } else if (opinions="Blacksheep") { printf("Sometimes Blacksheeps end up shining the most!"); } else if (opinions="Self-Centered") { printf("Mark time, I've planned to share the most during my whole life"); } else {printf("You just know less then 1% about me"); } } But when I run it, I get the output of "if" state. The "elseif" and "else" statements are not working. What's …

Member Avatar
+0 forum 7
Member Avatar

hi brothers , i work on a ASP.NET MVC Project, please i try to get a cookie who created already using server side C# , and in a pure HTML page not .CSHTML i talk now about .HTML page , in this page i want to using javascript to read the value of the cookie that i created using C# . i wish if anyone can help me and thanks so much in advance.

Member Avatar
+0 forum 1
Member Avatar

I need an answer for this question ( write 2 program that takes grade as input and display the range of marks use the select case and if() A. 90 to 100 B+ 80 to 89 B. 70 to 79 C 60 to 69 D 50 to 50 F. F

+0 forum 0
Member Avatar

Show error when I login to the SQL server management. First, I change the server name. Second restart the server/1st stop services the start services. Then I check the server name SELECT @@servername AS 'ServerName' using this line the show new change server name. Then I closed the window of SQL server then open it and type the new change server but show error. Please help me.... I use SQL Server 2008 r2. Windows authentication [Click Here](https://ibb.co/mzL2BdC) SELECT HOST_NAME() AS 'host_name()', @@servername AS 'ServerName\InstanceName', SERVERPROPERTY('servername') AS 'ServerName', SERVERPROPERTY('machinename') AS 'Windows_Name', SERVERPROPERTY('ComputerNamePhysicalNetBIOS') AS 'NetBIOS_Name', SERVERPROPERTY('instanceName') AS 'InstanceName', SERVERPROPERTY('IsClustered') AS 'IsClustered' EXEC …

Member Avatar
+0 forum 1
Member Avatar

# Major Reasons # ## Unclear or vague project requirements ## Defining project specifications is the first step in executing a successful project. In their eagerness to please potential clients and close a deal, companies often overlook details that could derail a project down the line. ## Poor or limited communication ## Effective communication is crucial to the success of any project. Just because you’ve understood the client’s requirements, doesn’t mean that your developers have. Sometimes, employees are too shy to voice doubts or ask questions. Lofty management on the other hand, is not entirely transparent with the client either. …

Member Avatar
+0 forum 1
Member Avatar

hi! I'm currently studying and having difficulty being able to print the array list, im not sure where im going wrong. any help will be appreciated import java.util.*; public class practice { static Scanner sc = new Scanner (System.in); static int numberOfCoffees = 0; static String[][] coffee = new String [50][2]; public static void main (String [] args) { int choice = 0; while (choice != 4) { menu (); choice = Integer.parseInt (sc.nextLine() ); if (choice == 1) { System.out.print('\u000C'); addItem(); } else if(choice == 2) { System.out.print('\u000C'); search(); } else if(choice == 3) { System.out.print('\u000C'); show(); } } …

Member Avatar
+1 forum 1
Member Avatar

Hi, I am using Windows 10 on my Core i5 laptop. from last 1 month I am facing an issue. This issue does'nt arise every time. Sometimes I logged into windows account without any problem, but some times it takes hours to go to the logon screen. It shows "Attempting Repair" or Attempting Automatic Repair screen when I power on my laptop. After some time it goes to the next screen where I select the Advanced Option and from there I select Exit and continue to Windows 10. After that laptop restart and same process begins, attempting repair scren and …

Member Avatar
+2 forum 11
Member Avatar

I have a form which I am using to filter a recordset. It all works as I want, but for one small annoying thing - there is an empty space at the top of the list of options (see screenshot). How can I get rid of this empty option? ![empty_option.jpg](/attachments/large/4/5ddcc6d6df75ecd1a8e0babbae2b31ba.jpg) I have checked the recordset which is used to generate the options for the dropdown list and this is OK, i.e. correct number of options. <?php $con=mysqli_connect("localhost","jtwiname"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $query_rs5 = "SELECT distinct class FROM classname"; $rs5 = mysqli_query($con, …

Member Avatar
+0 forum 2
Member Avatar

Hi Im having an error with my app, Im still learning to code. It gives me error at line rs = cmdOLEDB.ExecuteReader Here's my full code Imports System.Data Imports System.Data.OleDb Imports System.IO Public Class Form11 Dim cnnOLEDB As New OleDbConnection Dim cmdOLEDB As New OleDbCommand Dim cmdInsert As New OleDbCommand Dim cmdUpdate As New OleDbCommand Dim cmdDelete As New OleDbCommand Dim strConnectionString = "Provider=Microsoft.ACE.OLEDB.12.0;Data Source=" & _ System.Environment.CurrentDirectory & "\Akademik.accdb" Public ADP As OleDbDataAdapter Public DS As New DataSet Private Sub Label1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Label1.Click End Sub Private Sub Form11_Load(ByVal sender As System.Object, ByVal …

Member Avatar
+0 forum 1
Member Avatar

Here is my javascript code. function multyTypeUploadAttachments(file,classId,splAttrId){ var campaignID = $('#wk_custCampID').val(); if(campaignID == ""){ var campaignID = $('#wk_edit_camp_ID').val(); } var fileName = $('#'+file.id).val().replace(/C:\\fakepath\\/i, '');//form_skuAttachment var lastChar = file.id[file.id.length -1]; var upload_data = new FormData($('#wk_multy_form_AttrOptionAttachment'+classId+"-"+splAttrId+"-"+lastChar)[0]); $.ajax({ url: BASEPATH + 'c_workOrder/uploadSKUAttachments/'+file.id+'/'+campaignID, type: 'POST', data: upload_data, mimeType: "multipart/form-data", contentType: false, cache: false, processData: false, success: function (res) { $('#'+file.id+'-hidden').val(res); $('#'+file.id+'-OrgNamehidden').val(fileName); toastr.success('Upload success'); return; }, error: function (res) { toastr.error(res); } }); } and here is php code function uploadSKUAttachments($file,$campaignID){ $ext = substr(strrchr(basename($_FILES[$file]["name"]), '.'), 0); $fileName = basename($_FILES["$file"]["name"]); $name = basename($fileName,$ext); $createdTime = time(); $target_dir = "./uploads/attachments/"; $target_file = $target_dir .$campaignID."_".$name."_".$createdTime.$ext; $errorFlag = 1; …

Member Avatar
+0 forum 1
Member Avatar

Getting errors and having a hard time seeing where. If I get it to build it is ignoring the inputmenu. package personalprogram; import java.util.Scanner; /** * * @author mitch */ public class PersonalProgram { /** */ public final class InputMenu { public void display_menu() { System.out.println("1) Calculate Cubic feet per hour of room:\n2) Calculate needed CFM of \n3) Option 3"); System.out.print("Selection: "); } public void question() { System.out.println("Would you like to proceed or quit?"); System.out.println("To proceed enter 3."); System.out.println("If you wish to quit enter 0."); Scanner q = new Scanner(System.in); switch (q.nextInt()) { case 0: System.out.println ("Thank you and godbye."); …

Member Avatar
+0 forum 2
Member Avatar

Please, why I got this error(SQL Error: ORA-00907: missing right parenthesis ) whats wrong in my code? CREATE TABLE DomeniuAB(ID_DOMAB NUMBER(10) constraint ID_DOMAB_PK PRIMARY KEY , DENUMIRE VARCHAR2(20) NOT NULL, DETALII VARCHAR2(20) NOT NULL, ISBNAB_CarteAB VARCHAR2(15), CONSTRAINT ISBNAB_FK FOREIGN KEY (ISBNAB_CarteAB) REFERENCES CarteAB(ISBNAB), CNPAB_AutorAB NUMBER(10), CONSTRAINT CNPAB_FK FOREING KEY (CNPAB_AutorAB) REFERENCES AutorAB(CNPAB));

Member Avatar
+0 forum 3
Member Avatar

I'm creating a program that maintains student scores. I've created a class called students that stores the data and displays it in a list box. Once the user clicks btnAdd a new form (frmAddStudent) loads that allows them to add the user by name and their scores and display it in the listbox in the main form. It also allows the update/delete functions. I can succesfully add students to the list and edit them, but when I press the ok button in the update students form I get the error, "System.ArgumentOutOfRangeException: 'Index was out of range. Must be non-negative and …

+0 forum 0
Member Avatar

Warning: mysqli_fetch_array() expects parameter 1 to be mysqli_result, bool given in C:\Users\USER\Desktop\Final Year Project\XAMPP\htdocs\littleavenue\shop.php on line 320 <?PHP if(!isset($_GET['product_category'])){ if(!isset($_GET['category'])){ $per_page = 6; if(isset($_GET['page'])){ $page = $_GET['page']; } else { $page = 1; } $startfrom = ($page-1) * $per_page; $getproducts = " SELECT * FROM products OREDR BY 1 DESC LIMIT $startfrom, $per_page"; $runproducts = mysqli_query($connection,$getproducts); ////LINE 320 //// while($row = mysqli_fetch_array($runproducts)){ ////LINE 320//// $productid = $row['product_id']; $producttitle = $row['product_title']; $productprice = $row['product_price']; $productimgone = $row['product_img1']; echo "<div class='col-md-4 col-sm-6 center-responsive' > <div class='product' > <a href='productdetails.php?product_id=$productid' > <img src='admin/product_images/$proproductimgone' class='img-responsive' > </a> <div class='text'> <h3><a href='productdetails.php?product_id=$productid'>$producttitle</a></h3> <p class='price'>$ $productprice</p> …

Member Avatar
+0 forum 1

The End.